HeaderPane
Main
Hide
Share Link
Print

EditSetupEventArgs Class

Provides data for the EditSetup event.

Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Inheritance

Syntax

public class EditSetupEventArgs : System.EventArgs;
Public Class EditSetupEventArgs
    Inherits System.EventArgs

Constructors

This class cannot be instantiated.

Fields

PublicCellThe cell to be edited.
PublicEditControlDefines the control used for cell editing. This value can be modified by the EditSetup event handler.
PublicStaticInherited from System.EventArgsEmptyProvides a value to use with events that do not have event data.
PublicItemThe item whose cell is to be edited.
PublicrCellThe location of the cell.

Methods

PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.

Examples

C#

                e.Cell.Text = textBox1.Text;

            // hide the text box and make the form the control's parent
            textBox1.Visible = false;
            textBox1.Enabled = false;
            textBox1.Parent = sftTree1.Parent;
        }

        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;

VB.NET

    End If

    ' hide the text box and make the form the control's parent
    TextBox1.Visible = False
    TextBox1.Enabled = False
    TextBox1.Parent = SftTree1.Parent
End Sub

Private 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

See Also Classes | SftTree/NET 3.0