Grid.GetRow(FrameworkElement) 方法

定义

从指定的 FrameworkElement 中获取 Grid.Row XAML 附加属性的值。

public:
 static int GetRow(FrameworkElement ^ element);
 static int GetRow(FrameworkElement const& element);
public static int GetRow(FrameworkElement element);
function getRow(element)
Public Shared Function GetRow (element As FrameworkElement) As Integer

参数

element
FrameworkElement

要从中读取属性值的元素。

返回

Int32

int

目标元素上 Grid.Row XAML 附加属性的值。

注解

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

适用于

另请参阅