Grid.ColumnDefinitions Property

Definition

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>

Applies to

See also