語言

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 attached 屬性,不需要這個方法。 更多資訊請參閱 RelativePanel.AlignLeftWith 附加的屬性。

適用於

另請參閱