Share via


Location.Longitude Property

 

Gets or sets the longitude of the location.

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

Syntax

public double Longitude { get; set; }
public:
property double Longitude {
    double get();
    void set(double value);
}
member Longitude : float with get, set
Public Property Longitude As Double

Property Value

Type: System.Double

Returns Double.

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 Class
Microsoft.Maps.MapControl.WPF Namespace

Return to top