Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

Left Property, SplitterClass Class

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

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

Syntax

public LeftPane Left { get; }
Public ReadOnly Property Left As LeftPane

Value

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

Comments

Describes the attributes of the left 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#

                // set all textbox properties
                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 left (and only) pane
                r.Intersect(sftTree1.Splitter.Left.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;

See Also SplitterClass Class | Classes | SftTree/NET 2.0