Grid.ColumnDefinitions Property
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.
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.
public:
property Microsoft::Maui::Controls::ColumnDefinitionCollection ^ ColumnDefinitions { Microsoft::Maui::Controls::ColumnDefinitionCollection ^ get(); void set(Microsoft::Maui::Controls::ColumnDefinitionCollection ^ value); };
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.ColumnDefinitionCollectionTypeConverter))]
public Microsoft.Maui.Controls.ColumnDefinitionCollection ColumnDefinitions { get; set; }
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.ColumnDefinitionCollectionTypeConverter))>]
member this.ColumnDefinitions : Microsoft.Maui.Controls.ColumnDefinitionCollection with get, set
Public Property ColumnDefinitions As ColumnDefinitionCollection
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.