HeaderPane
Main
Hide
Share Link
Print

Columns Property, SftTree Object

Defines the number of columns.

Deprecated - Provided for compatibility with earlier versions only - Use ColumnsObj.Count instead

Syntax

Get

C#short NumCols = object.Columns;
VB.NETNumCols = object.Columns As Short
C++short NumCols = object->Columns;
short NumCols = object->GetColumns();
CHRESULT object->get_Columns(short* NumCols);
VBNumCols = object.Columns As Integer

Put

C#short object.Columns = NumCols;
VB.NETobject.Columns = NumCols As Short
C++short object->Columns = NumCols;
void object->PutColumns(short NumCols);
CHRESULT object->put_Columns(short NumCols);
VBobject.Columns = NumCols As Integer

object

A SftTree object.

NumCols

Defines the number of columns.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use ColumnsObj.Count instead

The Columns property defines the number of columns.

The number of columns can only be changed if a tree control is empty. The Items.Clear method can be used to remove all items from a tree control.

Additional columns are always added at the end of the list of columns. 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 ColumnsObj.OpenEnded property to redefine the last column.

See Also SftTree Object | Object Hierarchy


Last Updated 11/03/2026 - (email)
© 2026 Softel vdm, Inc.