Partager via


Grid.GetRowSpan Method

Definition

Overloads

GetRowSpan(BindableObject)

Gets the row span of the bindable child element.

GetRowSpan(IView)

GetRowSpan(BindableObject)

Source:
Grid.cs
Source:
Grid.cs

Gets the row span of the bindable child element.

public:
 static int GetRowSpan(Microsoft::Maui::Controls::BindableObject ^ bindable);
public static int GetRowSpan (Microsoft.Maui.Controls.BindableObject bindable);
static member GetRowSpan : Microsoft.Maui.Controls.BindableObject -> int
Public Shared Function GetRowSpan (bindable As BindableObject) As Integer

Parameters

bindable
BindableObject

An element that belongs to the Grid layout.

Returns

The row that the child element is in.

Remarks

The GetRowSpan(BindableObject) method corresponds to the following XAML attached properties:

Attached PropertyValue
RowSpanAn integer that represents the number of rows that the item will span.

The remarks for the SetRowSpan(BindableObject, Int32) method contain syntax for and information about the RowSpan attached property.

Applies to

GetRowSpan(IView)

Source:
Grid.cs
Source:
Grid.cs
public:
 virtual int GetRowSpan(Microsoft::Maui::IView ^ view);
public int GetRowSpan (Microsoft.Maui.IView view);
abstract member GetRowSpan : Microsoft.Maui.IView -> int
override this.GetRowSpan : Microsoft.Maui.IView -> int
Public Function GetRowSpan (view As IView) As Integer

Parameters

view
IView

Returns

Implements

Applies to