Share via


Location Constructor (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.

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

Syntax

public Location(
    double latitude,
    double longitude,
    double altitude,
    AltitudeReference altitudeReference
)
public:
Location(
    double latitude,
    double longitude,
    double altitude,
    AltitudeReference altitudeReference
)
new : 
        latitude:float *
        longitude:float *
        altitude:float *
        altitudeReference:AltitudeReference -> Location
Public Sub New (
    latitude As Double,
    longitude As Double,
    altitude As Double,
    altitudeReference As AltitudeReference
)

Parameters

Remarks

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.

See Also

Location Overload
Location Class
Microsoft.Maps.MapControl.WPF Namespace

Return to top