HeaderPane
Main
Hide
Share Link
Print

Right Property, SplitterClass Class

Describes the attributes of the right pane in a split tree control.

Class: SplitterClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public RightPane Right { get; }
Public ReadOnly Property Right As RightPane

Value

The attributes of the right pane in a split tree control.

Comments

Describes the attributes of the right pane in a split tree control.

If a tree control does not have a splitter bar (SplitterClass.Visible is False), only the left pane is available and all columns are located in the left pane.

Examples

C# View entire sample code

            textBox1.Parent = sftTree1;     // make the tree control the parent window

            textBox1.Text = e.Cell.Text;
            int h = textBox1.Height;

            Rectangle r = e.rCell;
            // limit the control to the right pane - all cell editing takes place in right pane
            r.Intersect(sftTree1.Splitter.Right.ItemsArea);
            int vOffs = (r.Size.Height - textBox1.Height) / 2;
            textBox1.Location = new Point(r.Location.X, r.Location.Y + vOffs);
            textBox1.Width = r.Width;

            // make it visible and enable it
            textBox1.Enabled = true;
            textBox1.Visible = true;

VB.NET View entire sample code

    TextBox1.Parent = SftTree1     ' make the tree control the parent window

    TextBox1.Text = e.Cell.Text
    Dim h As Integer = TextBox1.Height

    Dim r As Rectangle = e.rCell
    ' limit the control to the right pane - all cell editing takes place in right pane
    r.Intersect(SftTree1.Splitter.Right.ItemsArea)
    Dim vOffs As Integer = (r.Size.Height - TextBox1.Height) / 2
    TextBox1.Location = New Point(r.Location.X, r.Location.Y + vOffs)
    TextBox1.Width = r.Width

    ' make it visible and enable it
    TextBox1.Enabled = True
    TextBox1.Visible = True

See Also SplitterClass Class | Classes | SftTree/NET 3.0