Struct
ZoomRange

Represents zoom range.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(ZoomRangeConverter))]
public struct ZoomRange

Constructors

ZoomRange(double, double)

Initializes a new instance of the ZoomRange struct.

Declaration

cs-api-definition
public ZoomRange(double min, double max)

Parameters

min

double

Start value of the range.

max

double

End value of the range.

Properties

Empty

Gets a value that represents an empty ZoomRange structure.

Declaration

cs-api-definition
public static ZoomRange Empty { get; }

Property Value

ZoomRange

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.

IsEmpty

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

Declaration

cs-api-definition
public bool IsEmpty { get; }

Property Value

bool

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.

Max

Gets or sets end value of the range.

Declaration

cs-api-definition
public double Max { get; set; }

Property Value

double

Min

Gets or sets start value of the range.

Declaration

cs-api-definition
public double Min { get; set; }

Property Value

double

Methods

Equals(ZoomRange, ZoomRange)

Compares two ZoomRange structures for equality.

Declaration

cs-api-definition
public static bool Equals(ZoomRange zoomRange1, ZoomRange zoomRange2)

Parameters

zoomRange1

ZoomRange

The instance of ZoomRange to compare.

zoomRange2

ZoomRange

The instance of ZoomRange to compare.

Returns

bool

true if instances are equal; otherwise, false.

Equals(object)

Compares two ZoomRange structures for equality.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The instance of ZoomRange to compare to this instance.

Returns

bool

true if instances are equal; otherwise, false.

Overrides ValueType.Equals(object)

GetHashCode()

Gets a hash code for this ZoomRange structure.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for this ZoomRange structure.

Overrides ValueType.GetHashCode()

InRange(double)

Check whether given double value is in range.

Declaration

cs-api-definition
public bool InRange(double value)

Parameters

value

double

Value to test.

Returns

bool

The value is in range.

Parse(string)

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

Declaration

cs-api-definition
public static ZoomRange Parse(string source)

Parameters

source

string

The String representation of the ZoomRange object.

Returns

ZoomRange

The equivalent ZoomRange structure.

ToString()

Creates a String representation of this ZoomRange object.

Declaration

cs-api-definition
public override string ToString()

Returns

string

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

Overrides ValueType.ToString()

ToString(IFormatProvider)

Creates a String representation of this ZoomRange object.

Declaration

cs-api-definition
public string ToString(IFormatProvider provider)

Parameters

provider

IFormatProvider

The culture-specific formatting information.

Returns

string

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

Operators

operator !=(ZoomRange, ZoomRange)

Compares two ZoomRange structures for inequality.

Declaration

cs-api-definition
public static bool operator !=(ZoomRange zoomRange1, ZoomRange zoomRange2)

Parameters

zoomRange1

ZoomRange

The instance of ZoomRange to compare.

zoomRange2

ZoomRange

The instance of ZoomRange to compare.

Returns

bool

true if instances are equal; otherwise, false.

operator ==(ZoomRange, ZoomRange)

Compares two ZoomRange structures for equality.

Declaration

cs-api-definition
public static bool operator ==(ZoomRange zoomRange1, ZoomRange zoomRange2)

Parameters

zoomRange1

ZoomRange

The instance of ZoomRange to compare.

zoomRange2

ZoomRange

The instance of ZoomRange to compare.

Returns

bool

true if instances are equal; otherwise, false.