SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines the number of columns.
Deprecated - Provided for compatibility with earlier versions only - Use ColumnsObj.Count instead
Get
VB.NET | NumCols = object.Columns As Short |
VB | NumCols = object.Columns As Integer |
C#.NET | short NumCols = object.Columns; |
VC++ | short NumCols = object->Columns; short NumCols = object->GetColumns(); |
C | HRESULT object->get_Columns(short* NumCols); |
Put
VB.NET | object.Columns = NumCols As Short |
VB | object.Columns = NumCols As Integer |
C#.NET | short object.Columns = NumCols; |
VC++ | short object->Columns = NumCols; void object->PutColumns(short NumCols); |
C | HRESULT object->put_Columns(short NumCols); |
object
NumCols
Defines the number of columns.
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