Share via


Grid.GetColumnSpan(BindableObject) Method

Definition

Gets the column span of the bindable child element.

public static int GetColumnSpan (Xamarin.Forms.BindableObject bindable);
static member GetColumnSpan : Xamarin.Forms.BindableObject -> int

Parameters

bindable
BindableObject

An element that belongs to the Grid layout.

Returns

System.Int32

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