HeaderPane
Main
Hide
Share Link
Print

Splitter Property, SftTree Class

Returns the instance of the SplitterClass class that represents the splitter bar in a SftTree control and its attributes.

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

Syntax

public SplitterClass Splitter { get; }
Public ReadOnly Property Splitter As SplitterClass

Value

The instance of the SplitterClass class.

Comments

Returns the instance of the SplitterClass class that represents the splitter bar in a SftTree control and its attributes.

Examples

C# View entire sample code

        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() {

            Rectangle cr = sftTree1.ClientRectangle;

VB.NET View entire sample code

        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()

    Dim cr As Rectangle = sftTree1.ClientRectangle

See Also SftTree Class | Classes | SftTree/NET 3.0