RelativePanel.GetAlignHorizontalCenterWith(UIElement) 方法

定义

获取目标元素的 RelativePanel.AlignHorizontalCenterWith XAML 附加属性的值。

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

参数

element
UIElement

从中读取属性值的对象。

返回

Object

Platform::Object

IInspectable

指定对象的 RelativePanel.AlignHorizontalCenterWith XAML 附加属性值。 (此元素的水平中心与对齐的元素。)

注解

此方法是属性系统的实用工具方法,不用于大多数应用方案。 在大多数情况下,在 XAML 中设置 RelativePanel.AlignHorizontalCenterWith XAML 附加属性,不需要此方法。 有关详细信息,请参阅 RelativePanel.AlignHorizontalCenterWith 附加属性。

适用于

另请参阅