HeaderPane
Main
Hide

SftTree/OCX 8.0 - ActiveX Tree Control

Share Link
Print

Column Property, SftTreeSplitter Object

Defines the number of columns displayed in the left pane of a split tree control.

Syntax

Get

VB.NETCount = object.Column As Short
VBCount = object.Column As Integer
C#.NETshort Count = object.Column;
VC++short Count = object->Column;
short Count = object->GetColumn();
CHRESULT object->get_Column(short* Count);

Put

VB.NETobject.Column = Count As Short
VBobject.Column = Count As Integer
C#.NETshort object.Column = Count;
VC++short object->Column = Count;
void object->PutColumn(short Count);
CHRESULT object->put_Column(short Count);

object

A SftTreeSplitter object.

Count

Defines the number of columns displayed in the left pane of a split tree control. The number specified must be between 1 and the total number of columns-1.

Comments

The Column property defines the number of columns displayed in the left pane of a split tree control.

The total number of columns is defined using the ColumnsObj.Count property.

Examples

VB.NET

        AddBuiltinImage("Enabled Ascending Indicator", SftPictureImageConstants.sftImageSortAsc, 8, 8)
        AddBuiltinImage("Disabled Ascending Indicator", SftPictureImageConstants.sftImageSortAscDisabled, 8, 8)
        AddBuiltinImage("Enabled Descending Indicator", SftPictureImageConstants.sftImageSortDesc, 8, 8)
        AddBuiltinImage("Disabled Descending Indicator", SftPictureImageConstants.sftImageSortDescDisabled, 8, 8)


        AxSftTree1.RowHeaders.MakeOptimal() ' make the row headers optimal
        AxSftTree1.get_Column(0).MakeOptimal() ' make the first column optimal
        AxSftTree1.Items.RecalcHorizontalExtent() ' update horizontal scroll bar

        AxSftTree1.get_Item(0).Selected = True
        AxSftTree1.Items.Current = 0

        CopyImageFromCurrentItem()
    End Sub

C#

            AddBuiltinImage("Enabled Ascending Indicator", SftTreeLib80.SftPictureImageConstants.sftImageSortAsc, 8, 8);
            AddBuiltinImage("Disabled Ascending Indicator", SftTreeLib80.SftPictureImageConstants.sftImageSortAscDisabled, 8, 8);
            AddBuiltinImage("Enabled Descending Indicator", SftTreeLib80.SftPictureImageConstants.sftImageSortDesc, 8, 8);
            AddBuiltinImage("Disabled Descending Indicator", SftTreeLib80.SftPictureImageConstants.sftImageSortDescDisabled, 8, 8);


            axSftTree1.RowHeaders.MakeOptimal(); // make the row headers optimal
            axSftTree1.get_Column(0).MakeOptimal(); // make the first column optimal
            axSftTree1.Items.RecalcHorizontalExtent(); // update horizontal scroll bar

            axSftTree1.get_Item(0).Selected = true;
            axSftTree1.Items.Current = 0;

            CopyImageFromCurrentItem();
        }

See Also SftTreeSplitter Object | Object Hierarchy


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