Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

ItemsArea Property, LeftPane Class

Returns the area of the item area in the left pane.

Class: LeftPane
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public Rectangle ItemsArea { get; }
Public ReadOnly Property ItemsArea As Rectangle

Value

The area of the item area in the left pane.

Comments

Returns the area of the item area in the left pane.

The SplitterClass.Width and SplitterClass.Offset properties are used to define the size and location of the splitter bar, which affects the width of the left and right panes.

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



Spring Break!

Our offices will be closed this week (March 18 through March 22).

We'll be back March 24 to address any pending sales and support issues.