Share via


RelativePanel.GetAlignLeftWith(UIElement) 方法

定義

取得目標專案的 RelativePanel.AlignLeftWith XAML 附加屬性的值。

public:
 static Platform::Object ^ GetAlignLeftWith(UIElement ^ element);
 static IInspectable GetAlignLeftWith(UIElement const& element);
public static object GetAlignLeftWith(UIElement element);
function getAlignLeftWith(element)
Public Shared Function GetAlignLeftWith (element As UIElement) As Object

參數

element
UIElement

要讀取屬性值的物件。

傳回

Object

Platform::Object

IInspectable

指定物件的 RelativePanel.AlignLeftWith XAML 附加屬性值。 (要對齊這個專案左邊緣的 元素。)

備註

此方法是屬性系統的公用程式方法,而且不會在大部分的應用程式案例中使用。 在大部分情況下,您會在 XAML 中設定 RelativePanel.AlignLeftWith XAML 附加屬性,而且不需要此方法。 如需詳細資訊,請參閱 RelativePanel.AlignLeftWith 附加屬性。

適用於

另請參閱