Share via


MapControl.GetLocation(DependencyObject) 方法

定義

MapControl的指定子專案取得MapControl.Location XAML 附加屬性的值。 位置是 MapControl 上的地理位置,其中子項目的 MapControl.NormalizedAnchorPoint 位置。

public:
 static Geopoint ^ GetLocation(DependencyObject ^ element);
 static Geopoint GetLocation(DependencyObject const& element);
public static Geopoint GetLocation(DependencyObject element);
function getLocation(element)
Public Shared Function GetLocation (element As DependencyObject) As Geopoint

參數

element
DependencyObject

要從中讀取屬性值的項目。

傳回

MapControl.Location XAML 附加屬性的值,位於MapControl的指定子專案上。

適用於

另請參閱