Gets or sets a value that determines a number of columns in the AutoDistributionGrid. This is a dependency property.

Namespace:  C1.WPF.C1Schedule
Assembly:  C1.WPF.C1Schedule (in C1.WPF.C1Schedule.dll)

Syntax

C#
public int ColumnCount { get; set; }
Visual Basic (Declaration)
Public Property ColumnCount As Integer
	Get
	Set

Remarks

Use this property to specify a number of grid columns numerically.

This property value is being kept in sync with a number of items in the ColumnDefinitions collection.

If a number of items in the ColumnDefinitions collection has been changed then the value of the ColumnCount property is updated automatically.

If a value of the ColumnCount property is changed directly, then items will be added or removed to/from the end of ColumnDefinitions collection until its number becomes equal to the new ColumnCount value.

This is a dependency property.

See Also