Struct
DegreeMetric

Represents geographical coordinate unit (latitude or longitude) given as Degrees-Minutes-Seconds.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
public struct DegreeMetric

Constructors

DegreeMetric(double)

Initializes a new instance of the DegreeMetric structure.

Declaration

cs-api-definition
public DegreeMetric(double number)

Parameters

number

double

Double representation of the geographical coordinate.

Properties

Degrees

Get or sets Degrees.

Declaration

cs-api-definition
public int Degrees { get; set; }

Property Value

int

Minutes

Get or sets Minutes.

Declaration

cs-api-definition
public int Minutes { get; set; }

Property Value

int

Seconds

Get or sets Seconds.

Declaration

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

Property Value

double

Sign

Gets or sets sign of the metric. 1 - indicates that it is East for Longitude and North for Latitude. -1 - indicates that it is West for Longitude and South for Latitude.

Declaration

cs-api-definition
public int Sign { get; set; }

Property Value

int

Methods

Equals(DegreeMetric, DegreeMetric)

Compares two DegreeMetric structures for equality.

Declaration

cs-api-definition
public static bool Equals(DegreeMetric metric1, DegreeMetric metric2)

Parameters

metric1

DegreeMetric

The instance of DegreeMetric to compare.

metric2

DegreeMetric

The instance of DegreeMetric to compare.

Returns

bool

true if instances are equal; otherwise, false.

Equals(object)

Compares two DegreeMetric structures for equality.

Declaration

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

Parameters

obj

object

The instance of DegreeMetric 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 DegreeMetric structure.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for this DegreeMetric structure.

Overrides ValueType.GetHashCode()

ToString()

Creates a String representation of this DegreeMetric object.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A String containing the Degrees-Minutes-Seconds values of this DegreeMetric object.

Overrides ValueType.ToString()

ToString(IFormatProvider)

Creates a String representation of this DegreeMetric object.

Declaration

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

Parameters

provider

IFormatProvider

The culture-specific formatting information.

Returns

string

A String containing the Degrees-Minutes-Seconds values of this DegreeMetric object.

Operators

operator !=(DegreeMetric, DegreeMetric)

Compares two DegreeMetric structures for inequality.

Declaration

cs-api-definition
public static bool operator !=(DegreeMetric metric1, DegreeMetric metric2)

Parameters

metric1

DegreeMetric

The instance of DegreeMetric to compare.

metric2

DegreeMetric

The instance of DegreeMetric to compare.

Returns

bool

true if instances are equal; otherwise, false.

operator ==(DegreeMetric, DegreeMetric)

Compares two DegreeMetric structures for equality.

Declaration

cs-api-definition
public static bool operator ==(DegreeMetric metric1, DegreeMetric metric2)

Parameters

metric1

DegreeMetric

The instance of DegreeMetric to compare.

metric2

DegreeMetric

The instance of DegreeMetric to compare.

Returns

bool

true if instances are equal; otherwise, false.