HeaderPane
Main
Hide
Share Link
Print

Columns Property, SftTree Class

Returns the control's ColumnsClass instance describing all columns.

Class: SftTree
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public ColumnsClass Columns { get; }
Public ReadOnly Property Columns As ColumnsClass

Value

The ColumnsClass class instance.

Comments

Returns the control's ColumnsClass instance describing all columns.

The instance of the ColumnsClass class describes attributes that apply to all columns in a SftTree control. Numerous properties and methods can be accessed using the returned object.

A control has only one ColumnsClass instance.

Examples

C# View entire sample code

namespace DemoSample {
    public partial class Form1 : Form {
        public Form1() {
            InitializeComponent();
        }

        private void Optimize() {
            sftTree1.Initializing = true;
            sftTree1.Columns.MakeOptimal(0, false);
            sftTree1.RowHeaders.MakeOptimal(0, false);
            sftTree1.Splitter.MakeOptimal();
            sftTree1.RecalcHorizontalExtent();
            sftTree1.Initializing = false;
        }

        private void AdjustInfo() {

VB.NET View entire sample code

            If _Interval <= 0 Then Return 5000
            Return _Interval
        End Get
    End Property
End Class

Private Sub Optimize()
    sftTree1.Initializing = True
    sftTree1.Columns.MakeOptimal(0, False)
    sftTree1.RowHeaders.MakeOptimal(0, False)
    sftTree1.Splitter.MakeOptimal()
    sftTree1.RecalcHorizontalExtent()
    sftTree1.Initializing = False
End Sub

Private Sub AdjustInfo()

See Also SftTree Class | Classes | SftTree/NET 3.0