Location Class

Bing
 

Contains the altitude and coordinate values of a location on the map.

Namespace:   Microsoft.Maps.MapControl.WPF
Assembly:  Microsoft.Maps.MapControl.WPF (in Microsoft.Maps.MapControl.WPF.dll)

System::Object
  Microsoft.Maps.MapControl.WPF::Location

[TypeConverterAttribute((LocationConverter^::typeid))]
public ref class Location : IFormattable

NameDescription
System_CAPS_pubmethodLocation()

Initializes a new instance of the Location structure.

System_CAPS_pubmethodLocation(Double, Double)

Initializes a new instance of the Location structure using the given latitude and longitude values.

System_CAPS_pubmethodLocation(Double, Double, Double)

Initializes a new instance of the Microsoft.Maps.MapControl.WPF.Location structure using the given latitude, longitude and altitude values.

System_CAPS_pubmethodLocation(Double, Double, Double, AltitudeReference)

Initializes a new instance of the Microsoft.Maps.MapControl.WPF.Location structure using the given latitude, longitude, altitude and altitude reference values.

System_CAPS_pubmethodLocation(Location^)

Initializes a new instance of the Location structure using the given location.

NameDescription
System_CAPS_pubpropertyAltitude

Gets or sets altitude for a location.

System_CAPS_pubpropertyAltitudeReference

Gets or sets the reference plane used to measure the altitude.

System_CAPS_pubpropertyLatitude

Gets or sets the latitude of the location.

System_CAPS_pubpropertyLongitude

Gets or sets the longitude of the location.

NameDescription
System_CAPS_pubmethodEquals(Object^)

Determines whether this location is the same as the given object.(Overrides Object::Equals(Object^).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Retrieves the hash code for this location.(Overrides Object::GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticNormalizeLongitude(Double)

Converts an invalid longitude value to be within the valid range, which is -180 to 180.

System_CAPS_pubmethodToString()

Converts the location to a formatted string containing the latitude, longitude, and altitude values.(Overrides Object::ToString().)

System_CAPS_pubmethodToString(IFormatProvider^)

Converts the location to a formatted string containing the latitude, longitude, and altitude values using the specified format provider.

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticMaxLatitude

Specifies the maximum latitude in degrees.

System_CAPS_pubfieldSystem_CAPS_staticMaxLongitude

Specifies the maximum longitude in degrees.

System_CAPS_pubfieldSystem_CAPS_staticMinLatitude

Specifies the minimum latitude in degrees.

System_CAPS_pubfieldSystem_CAPS_staticMinLongitude

Specifies the minimum longitude in degrees.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(Location^, Location^)

Determines whether two instances of Location are equal.

System_CAPS_puboperatorSystem_CAPS_staticInequality(Location^, Location^)

Determines whether two instances of Location are not equal.

If the specified values of Latitude and Longitude are not within the range of valid values for these properties, they are converted to valid values. The range of valid values for Latitude is -90 to 90. The range of valid values for Longitude is -180 to 180.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: