MapControl.GetLocationFromOffset 方法

定義

多載

GetLocationFromOffset(Point, Geopoint)

將地圖上的點轉換成地理位置。

注意

此方法已被取代。 請改用 TryGetLocationFromOffset 方法。

GetLocationFromOffset(Point, AltitudeReferenceSystem, Geopoint)

使用指定的高度參考系統,將地圖上的點轉換為地理位置。

注意

此方法已被取代。 請改用 TryGetLocationFromOffset 方法。

GetLocationFromOffset(Point, Geopoint)

將地圖上的點轉換成地理位置。

注意

此方法已被取代。 請改用 TryGetLocationFromOffset 方法。

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)

參數

offset
Point

地圖上要轉換成地理位置的點。

location
Geopoint

當這個方法傳回時,會包含對應的地理位置。

屬性

備註

如果點無效,這個方法將會擲回例外狀況。

另請參閱

適用於

GetLocationFromOffset(Point, AltitudeReferenceSystem, Geopoint)

使用指定的高度參考系統,將地圖上的點轉換為地理位置。

注意

此方法已被取代。 請改用 TryGetLocationFromOffset 方法。

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)

參數

offset
Point

地圖上要轉換成地理位置的點。

desiredReferenceSystem
AltitudeReferenceSystem

地理點的高度參考系統。 高度參考系統的 [未指定 ] 值與使用預設 GetLocationFromOffset (Windows.Foundation.Point 位移、Windows.Devices.Geolocation.Geopoint 位置) 多載的效果相同。

location
Geopoint

當這個方法傳回時,會包含對應的地理位置。

屬性

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

備註

這個方法提供 Geopoint的實例。 該 Geopoint包含BasicGeoPosition。 物件。 desiredReferenceSystem參數會設定該物件的高度欄位。

如果點無效,這個方法將會擲回例外狀況。

注意

Ellipsoid的 AltitudeReferenceSystem可能不受支援。

適用於