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

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:

C#
public struct DegreeMetric

Constructors

Initializes a new instance of the DegreeMetric structure.

C#
public DegreeMetric(double number)
Parameters:numberdouble

Double representation of the geographical coordinate.

Properties

Get or sets Degrees.

C#
public int Degrees { get; set; }

Get or sets Minutes.

C#
public int Minutes { get; set; }

Get or sets Seconds.

C#
public double Seconds { get; set; }

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.

C#
public int Sign { get; set; }

Methods

Compares two DegreeMetric structures for equality.

C#
public static bool Equals(DegreeMetric metric1, DegreeMetric metric2)
Parameters:metric1DegreeMetric

The instance of DegreeMetric to compare.

metric2DegreeMetric

The instance of DegreeMetric to compare.

Returns:

bool

true if instances are equal; otherwise, false.

Compares two DegreeMetric structures for equality.

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

The instance of DegreeMetric to compare to this instance.

Returns:

bool

true if instances are equal; otherwise, false.

Overrides: ValueType.Equals(object)

Gets a hash code for this DegreeMetric structure.

C#
public override int GetHashCode()
Returns:

int

A hash code for this DegreeMetric structure.

Overrides: ValueType.GetHashCode()

Creates a String representation of this DegreeMetric object.

C#
public override string ToString()
Returns:

string

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

Overrides: ValueType.ToString()

Creates a String representation of this DegreeMetric object.

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

The culture-specific formatting information.

Returns:

string

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

Operators

Compares two DegreeMetric structures for inequality.

C#
public static bool operator !=(DegreeMetric metric1, DegreeMetric metric2)
Parameters:metric1DegreeMetric

The instance of DegreeMetric to compare.

metric2DegreeMetric

The instance of DegreeMetric to compare.

Returns:

bool

true if instances are equal; otherwise, false.

Compares two DegreeMetric structures for equality.

C#
public static bool operator ==(DegreeMetric metric1, DegreeMetric metric2)
Parameters:metric1DegreeMetric

The instance of DegreeMetric to compare.

metric2DegreeMetric

The instance of DegreeMetric to compare.

Returns:

bool

true if instances are equal; otherwise, false.