Grid.GetRowSpan(FrameworkElement) Method

Definition

Gets the value of the Grid.RowSpan XAML attached property from the specified FrameworkElement.

Equivalent WinUI method: Microsoft.UI.Xaml.Controls.Grid.GetRowSpan.

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

Parameters

element
FrameworkElement

The element from which to read the property value.

Returns

Int32

The value of the Grid.RowSpan XAML attached property on the target element.

Remarks

This method is a utility method for the property system, and isn't used in most app scenarios. In most cases you set the Grid.RowSpan XAML attached property in XAML and won't need this method. For more info, see the Grid.RowSpan attached property.

Applies to

See also