Share via


Grid.SetRowSpan Method

Definition

Overloads

SetRowSpan(IView, Int32)

Sets the number of rows spanned by the specified view.

SetRowSpan(BindableObject, Int32)

Changes the row span of the specified child element.

SetRowSpan(IView, Int32)

Source:
Grid.cs
Source:
Grid.cs
Source:
Grid.cs

Sets the number of rows spanned by the specified view.

public:
 void SetRowSpan(Microsoft::Maui::IView ^ view, int span);
public void SetRowSpan(Microsoft.Maui.IView view, int span);
member this.SetRowSpan : Microsoft.Maui.IView * int -> unit
Public Sub SetRowSpan (view As IView, span As Integer)

Parameters

view
IView

The child view to modify.

span
Int32

The span (must be >= 1).

Exceptions

Thrown if span is less than 1.

Thrown if view is a non-bindable view that has not been added to the grid.

Applies to

SetRowSpan(BindableObject, Int32)

Source:
Grid.cs
Source:
Grid.cs
Source:
Grid.cs

Changes the row span of the specified child element.

public:
 static void SetRowSpan(Microsoft::Maui::Controls::BindableObject ^ bindable, int value);
public static void SetRowSpan(Microsoft.Maui.Controls.BindableObject bindable, int value);
static member SetRowSpan : Microsoft.Maui.Controls.BindableObject * int -> unit
Public Shared Sub SetRowSpan (bindable As BindableObject, value As Integer)

Parameters

bindable
BindableObject

A child element of this Grid on which to assign a new row span.

value
Int32

The new row span.

Remarks

The SetRowSpan(BindableObject, Int32) method corresponds to the following XAML attached property:

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

Applies to