Share via


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

適用於

另請參閱