The location of the cell.
Class: EditSetupEventArgs
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public readonly Rectangle rCell;
Public ReadOnly rCell As RectangleThe location of the cell.
private void sftTree1_EditSetup(object sender, Softelvdm.SftTreeNET.EditSetupEventArgs e) {
DumpValues("EditSetup", e);
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 itPrivate Sub SftTree1_EditSetup(ByVal sender As System.Object, ByVal e As Softelvdm.SftTreeNET.EditSetupEventArgs) Handles SftTree1.EditSetup DumpValues("EditSetup", e) 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
See Also EditSetupEventArgs Class | Classes | SftTree/NET 3.0