Share via


Grid.ColumnDefinitions Property

Definition

Provides the interface for the bound property that gets or sets the ordered collection of ColumnDefinition objects that control the layout of columns in the Grid.

[Xamarin.Forms.TypeConverter(typeof(Xamarin.Forms.ColumnDefinitionCollectionTypeConverter))]
public Xamarin.Forms.ColumnDefinitionCollection ColumnDefinitions { get; set; }
member this.ColumnDefinitions : Xamarin.Forms.ColumnDefinitionCollection with get, set

Property Value

A ColumnDefinitionCollection for the Grid instance.

Attributes

Remarks

ColumnDefinitions is an ordered set of ColumnDefinition objects that determine the width of each column. Each successive ColumnDefintion controls the width of each successive column. If ColumnDefinitions is empty, or if there are more columns than definitions, then columns for which there is no definition are rendered as if they were controlled by a ColumnDefinition object that has its Width property set to Star.

The ColumnDefinitions property has XAML syntax support. The syntax for this operation is shown below.

Applies to