HeaderPane
Main
Hide

SftTree/NET 3.0 - Tree Control for Windows Forms

Share Link
Print

Count Property, ColumnsClass Class

Defines the number of columns.

Class: ColumnsClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public int Count { get; set; }
Public Property Count As Integer

Value

The number of columns.

The default value is 1.

Comments

Defines the number of columns.

The number of columns can be changed anytime, even if tree control is not empty. Any items that have more cells than the defined number of columns, retain these extraneous cell, but they are not displayed. If too few cells are present, the missing cells are considered empty cells.

The ItemCollectionClass.Clear method can be used to remove all items from a tree control.

Additional columns are always added at the end of the column collection. Existing column properties are not changed. Default values are used for the new columns added. These can be changed using the column related properties. The last column will be defined using an explicit column width. If an open-ended column is desired, use the ColumnsClass.LastOpenended property to redefine the last column.

See Also ColumnsClass Class | Classes | SftTree/NET 3.0