New to Telerik UI for WPFStart a free 30-day trial

ZoomRange

Struct

Represents zoom range.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
[TypeConverter(typeof(ZoomRangeConverter))]
public struct ZoomRange

Constructors

Initializes a new instance of the ZoomRange struct.

C#
public ZoomRange(double min, double max)
Parameters:mindouble

Start value of the range.

maxdouble

End value of the range.

Properties

Gets a value that represents an empty ZoomRange structure.

C#
public static ZoomRange Empty { get; }
Remarks:

A ZoomRange structure with Min and Max values set to 0 is not empty. An empty ZoomRange structure has Min and Max values set to negative infinity. This is the only time a ZoomRange structure can have negative infinity values.

Gets a value that indicates whether this ZoomRange structure is empty.

C#
public bool IsEmpty { get; }
Remarks:

A ZoomRange structure with Min and Max values set to 0 is not empty. An empty ZoomRange structure has Min and Max values set to negative infinity. This is the only time a ZoomRange structure can have negative infinity values.

Gets or sets end value of the range.

C#
public double Max { get; set; }

Gets or sets start value of the range.

C#
public double Min { get; set; }

Methods

Compares two ZoomRange structures for equality.

C#
public override bool Equals(object obj)
Parameters:objobject

The instance of ZoomRange to compare to this instance.

Returns:

bool

true if instances are equal; otherwise, false.

Overrides: ValueType.Equals(object)

Compares two ZoomRange structures for equality.

C#
public static bool Equals(ZoomRange zoomRange1, ZoomRange zoomRange2)
Parameters:zoomRange1ZoomRange

The instance of ZoomRange to compare.

zoomRange2ZoomRange

The instance of ZoomRange to compare.

Returns:

bool

true if instances are equal; otherwise, false.

Gets a hash code for this ZoomRange structure.

C#
public override int GetHashCode()
Returns:

int

A hash code for this ZoomRange structure.

Overrides: ValueType.GetHashCode()

Check whether given double value is in range.

C#
public bool InRange(double value)
Parameters:valuedouble

Value to test.

Returns:

bool

The value is in range.

Converts a String representation of a Min-Max into the equivalent ZoomRange object.

C#
public static ZoomRange Parse(string source)
Parameters:sourcestring

The String representation of the ZoomRange object.

Returns:

ZoomRange

The equivalent ZoomRange structure.

Creates a String representation of this ZoomRange object.

C#
public override string ToString()
Returns:

string

A String containing the Min and Max values of this ZoomRange object.

Overrides: ValueType.ToString()

Creates a String representation of this ZoomRange object.

C#
public string ToString(IFormatProvider provider)
Parameters:providerIFormatProvider

The culture-specific formatting information.

Returns:

string

A String containing the Min and Max values of this ZoomRange object.

Operators

Compares two ZoomRange structures for inequality.

C#
public static bool operator !=(ZoomRange zoomRange1, ZoomRange zoomRange2)
Parameters:zoomRange1ZoomRange

The instance of ZoomRange to compare.

zoomRange2ZoomRange

The instance of ZoomRange to compare.

Returns:

bool

true if instances are equal; otherwise, false.

Compares two ZoomRange structures for equality.

C#
public static bool operator ==(ZoomRange zoomRange1, ZoomRange zoomRange2)
Parameters:zoomRange1ZoomRange

The instance of ZoomRange to compare.

zoomRange2ZoomRange

The instance of ZoomRange to compare.

Returns:

bool

true if instances are equal; otherwise, false.