RelativePanel.GetAlignRightWithPanel(UIElement) 方法

定义

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

public:
 static bool GetAlignRightWithPanel(UIElement ^ element);
 static bool GetAlignRightWithPanel(UIElement const& element);
public static bool GetAlignRightWithPanel(UIElement element);
function getAlignRightWithPanel(element)
Public Shared Function GetAlignRightWithPanel (element As UIElement) As Boolean

参数

element
UIElement

从中读取属性值的对象。

返回

Boolean

bool

指定对象的 RelativePanel.AlignRightWithPanel XAML 附加属性值。 (true 将此元素的右边缘与面板的右边缘对齐;否则为 false.)

注解

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

适用于

另请参阅