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 附加属性。

适用于

另请参阅