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.
Gets a list of ColumnDefinition objects defined on this instance of Grid.
public:
property ColumnDefinitionCollection ^ ColumnDefinitions { ColumnDefinitionCollection ^ get(); };
ColumnDefinitionCollection ColumnDefinitions();
public ColumnDefinitionCollection ColumnDefinitions { get; }
var columnDefinitionCollection = grid.columnDefinitions;
Public ReadOnly Property ColumnDefinitions As ColumnDefinitionCollection
<Grid>
<Grid.ColumnDefinitions>
oneOrMoreColumnDefinitions
</Grid.ColumnDefinitions>
</Grid>
Property Value
A list of ColumnDefinition objects defined on this instance of Grid.
Examples
The following example creates a Grid with two columns by using ColumnDefinition s.
<Grid.ColumnDefinitions>
<ColumnDefinition Width="250" />
<ColumnDefinition Width="150" />
</Grid.ColumnDefinitions>