Grid.ColumnDefinitions Grid.ColumnDefinitions Grid.ColumnDefinitions Grid.ColumnDefinitions Property

Definition

Gets a list of ColumnDefinition objects defined on this instance of Grid.

public : ColumnDefinitionCollection ColumnDefinitions { get; }
ColumnDefinitionCollection ColumnDefinitions();
public ColumnDefinitionCollection ColumnDefinitions { get; }
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>

See also