Freigeben über


Grid.GetColumnSpan Method

Definition

Overloads

GetColumnSpan(BindableObject)

Gets the column span of the bindable child element.

GetColumnSpan(IView)

GetColumnSpan(BindableObject)

Source:
Grid.cs
Source:
Grid.cs

Gets the column span of the bindable child element.

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

Parameters

bindable
BindableObject

An element that belongs to the Grid layout.

Returns

The column that the child element is in.

Remarks

The GetColumnSpan(BindableObject) method corresponds to the value that is set by the following XAML attached property.

Attached PropertyValue
ColumnSpan

An integer that represents the number of Columns that the item will span.

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

Applies to

GetColumnSpan(IView)

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

Parameters

view
IView

Returns

Implements

Applies to