HeaderPane
Main
Hide

SftTree/OCX 8.0 - ActiveX Tree Control

Share Link
Print

ColumnCount Property, VirtualItem Object

Returns the current number of columns.

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

Syntax

Get

VB.NETTotal = object.ColumnCount As Short
VBTotal = object.ColumnCount As Integer
C#.NETshort Total = object.ColumnCount;
VC++short Total = object->ColumnCount;
short Total = object->GetColumnCount();
CHRESULT object->get_ColumnCount(short* Total);

object

A VirtualItem object.

Total

Returns the current number of columns.

Comments

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

The ColumnCount property returns the current number of columns.

Examples

VB6

      BackgroundStyle =   0
      BackgroundX     =   0
      BackgroundY     =   0
      BorderStyle     =   0
      ButtonStyle     =   2
      CellEventHandling=   0
      CellEditStyle   =   0
      CellEditLimit   =   0
      ColumnCount     =   2
      CopyItemDataString=   1
      CustomCode      =   0
      DragImage       =   -842150451
      DragMethod      =   1
      DragType        =   3
      Enabled         =   1
      HandleReturn    =   -842150451

See Also VirtualItem Object | Object Hierarchy


Last Updated 05/24/2026 - (email)
© 2026 Softel vdm, Inc.