Xamarin.Forms.Grid.GetColumnSpan Method
Gets the column span of the bindable child element.

Syntax

public static int GetColumnSpan (BindableObject bindable)

Parameters

bindable
An element that belongs to the Grid layout.

Returns

The column that the child element is in.

Remarks

The Grid.GetColumSpan 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 Grid.SetColumnSpan method contain syntax for and information about the ColumnSpan attached property.

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0