Grid.GetColumnSpan 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
GetColumnSpan(BindableObject) |
Gets the column span of the |
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 Property | Value |
---|---|
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