Share via


MapControl.TryGetLocationFromOffset メソッド

定義

オーバーロード

TryGetLocationFromOffset(Point, AltitudeReferenceSystem, Geopoint)

指定した高度参照システムを使用して、マップ上のポイントを地理的な場所に変換します。

TryGetLocationFromOffset(Point, Geopoint)

マップ上のポイントを地理的な場所に変換します。

TryGetLocationFromOffset(Point, AltitudeReferenceSystem, Geopoint)

指定した高度参照システムを使用して、マップ上のポイントを地理的な場所に変換します。

public:
 virtual bool TryGetLocationFromOffset(Point offset, AltitudeReferenceSystem desiredReferenceSystem, [Out] Geopoint ^ & location) = TryGetLocationFromOffset;
/// [Windows.Foundation.Metadata.Overload("TryGetLocationFromOffsetWithReferenceSystem")]
bool TryGetLocationFromOffset(Point const& offset, AltitudeReferenceSystem const& desiredReferenceSystem, [Out] Geopoint const& & location);
[Windows.Foundation.Metadata.Overload("TryGetLocationFromOffsetWithReferenceSystem")]
public bool TryGetLocationFromOffset(Point offset, AltitudeReferenceSystem desiredReferenceSystem, out Geopoint location);
Public Function TryGetLocationFromOffset (offset As Point, desiredReferenceSystem As AltitudeReferenceSystem, ByRef location As Geopoint) As Boolean

パラメーター

offset
Point

地理的な場所に変換するマップ上のポイント。

desiredReferenceSystem
AltitudeReferenceSystem

地理的なポイントの高度参照システム。 高度参照システムの Unspecified の値は、既定の TryGetLocationFromOffset(Windows.Foundation.Point オフセット、Windows.Devices.Geolocation.Geopoint location) オーバーロードの使用と同じ効果を持ちます。

location
Geopoint

このメソッドが返されると、 には対応する地理的な場所が格納されます。

戻り値

Boolean

bool

場所が無効な場合は true を返します。それ以外の場合は false

属性

Windows の要件

デバイス ファミリ
Windows 10 Fall Creators Update (10.0.16299.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v5.0 で導入)

注釈

GetLocationFromOffset メソッドの代わりに、このメソッドを使用します。 GetLocationFromOffset メソッドは非推奨となりました。

適用対象

TryGetLocationFromOffset(Point, Geopoint)

マップ上のポイントを地理的な場所に変換します。

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

パラメーター

offset
Point

地理的な場所に変換するマップ上のポイント。

location
Geopoint

このメソッドが返されると、 には対応する地理的な場所が格納されます。

戻り値

Boolean

bool

場所が無効な場合は true を返します。それ以外の場合は false

属性

Windows の要件

デバイス ファミリ
Windows 10 Fall Creators Update (10.0.16299.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v5.0 で導入)

注釈

GetLocationFromOffset メソッドの代わりに、このメソッドを使用します。 GetLocationFromOffset メソッドは非推奨となりました。

適用対象