MapControl.GetLocationFromOffset Method

Definition

Overloads

GetLocationFromOffset(Point, Geopoint)

Converts a point on the map to a geographic location.

Note

This method is deprecated. Use the TryGetLocationFromOffset method instead.

GetLocationFromOffset(Point, AltitudeReferenceSystem, Geopoint)

Converts a point on the map to a geographic location by using the specified altitude reference system.

Note

This method is deprecated. Use the TryGetLocationFromOffset method instead.

GetLocationFromOffset(Point, Geopoint)

Converts a point on the map to a geographic location.

Note

This method is deprecated. Use the TryGetLocationFromOffset method instead.

public:
 virtual void GetLocationFromOffset(Point offset, [Out] Geopoint ^ & location) = GetLocationFromOffset;
void GetLocationFromOffset(Point const& offset, [Out] Geopoint const& & location);
/// [Windows.Foundation.Metadata.Overload("GetLocationFromOffset")]
void GetLocationFromOffset(Point const& offset, [Out] Geopoint const& & location);
public void GetLocationFromOffset(Point offset, out Geopoint location);
[Windows.Foundation.Metadata.Overload("GetLocationFromOffset")]
public void GetLocationFromOffset(Point offset, out Geopoint location);
Public Sub GetLocationFromOffset (offset As Point, ByRef location As Geopoint)

Parameters

offset
Point

A point on the map to convert to a geographic location.

location
Geopoint

When this method returns, contains the corresponding geographic location.

Attributes

Remarks

This method will throw an exception if the point is invalid.

See also

Applies to

GetLocationFromOffset(Point, AltitudeReferenceSystem, Geopoint)

Converts a point on the map to a geographic location by using the specified altitude reference system.

Note

This method is deprecated. Use the TryGetLocationFromOffset method instead.

public:
 virtual void GetLocationFromOffset(Point offset, AltitudeReferenceSystem desiredReferenceSystem, [Out] Geopoint ^ & location) = GetLocationFromOffset;
/// [Windows.Foundation.Metadata.Overload("GetLocationFromOffsetWithReferenceSystem")]
void GetLocationFromOffset(Point const& offset, AltitudeReferenceSystem const& desiredReferenceSystem, [Out] Geopoint const& & location);
[Windows.Foundation.Metadata.Overload("GetLocationFromOffsetWithReferenceSystem")]
public void GetLocationFromOffset(Point offset, AltitudeReferenceSystem desiredReferenceSystem, out Geopoint location);
Public Sub GetLocationFromOffset (offset As Point, desiredReferenceSystem As AltitudeReferenceSystem, ByRef location As Geopoint)

Parameters

offset
Point

A point on the map to convert to a geographic location.

desiredReferenceSystem
AltitudeReferenceSystem

The altitude reference system of the geographic point. A value of Unspecified for the altitude reference system has the same effect as using the default GetLocationFromOffset(Windows.Foundation.Point offset, Windows.Devices.Geolocation.Geopoint location) overload.

location
Geopoint

When this method returns, contains the corresponding geographic location.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

This method provides an instance of a Geopoint. That Geopoint contains a BasicGeoPosition. object. The desiredReferenceSystem parameter sets the Altitude field of that object.

This method will throw an exception if the point is invalid.

Note

An AltitudeReferenceSystem of Ellipsoid might not be supported.

Applies to