Grid.GetRowSpan Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| GetRowSpan(IView) |
Gets the number of rows spanned by the provided |
| GetRowSpan(BindableObject) |
Gets the row span of the |
GetRowSpan(IView)
- Source:
- Grid.cs
- Source:
- Grid.cs
- Source:
- Grid.cs
Gets the number of rows spanned by the provided view.
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
The child view whose row span to retrieve.
Returns
The row span; defaults to 1.
Implements
Exceptions
Thrown if view is a non-bindable view that has not been added to the grid.
Applies to
GetRowSpan(BindableObject)
- Source:
- Grid.cs
- 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 span value of the given element.
Remarks
The GetRowSpan(BindableObject) method corresponds to the following XAML attached properties:
| Attached Property | Value |
|---|---|
| RowSpan | An 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.