Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

Splitter Property, SftTree Class

Returns the instance of the SplitterClass class that represents the splitter bar in a SftTree/NET 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/NET control and its attributes.

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 SftTree Class | Classes | SftTree/NET 2.0