HeaderPane
Main
Hide
Share Link
Print

EditClickOutsideEventArgs Class

Provides data for the EditClickOutside event.

Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Inheritance

Syntax

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

Constructors

This class cannot be instantiated.

Fields

PublicCellThe cell being edited.
PublicClassNameThe window class name of the window receiving the mouse click.
PublicEditControlThe control used for cell editing.
PublicStaticInherited from System.EventArgsEmptyProvides a value to use with events that do not have event data.
PublicEndEditingDefines whether cell editing ends. This value can be modified by the EditClickOutside event handler.
PublicItemThe item being edited.
PublicmThe message that could potentially end cell editing.

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#

        }

        private void sftTree1_EditAllowed(object sender, Softelvdm.SftTreeNET.EditAllowedEventArgs e) {
            DumpValues("EditAllowed", e);

            e.Allowed = (e.Cell.ColumnIndex == 2); // only edit cells in column 2
        }

        private void sftTree1_EditClickOutside(object sender, Softelvdm.SftTreeNET.EditClickOutsideEventArgs e) {
            DumpValues("EditClickOutside", e);
        }

        private void sftTree1_EditEnded(object sender, Softelvdm.SftTreeNET.EditEndedEventArgs e) {
            DumpValues("EditEnded", e);

            // save the new cell text if necessary

VB.NET

    If e.Cell.ColumnIndex = 2 Then ' only edit cells in column 2
        e.Allowed = True
    Else
        e.Allowed = False
    End If
End Sub

Private Sub SftTree1_EditClickOutside(ByVal sender As System.Object, ByVal e As Softelvdm.SftTreeNET.EditClickOutsideEventArgs) Handles SftTree1.EditClickOutside
    DumpValues("EditClickOutside", e)
End Sub

Private Sub SftTree1_EditEnded(ByVal sender As System.Object, ByVal e As Softelvdm.SftTreeNET.EditEndedEventArgs) Handles SftTree1.EditEnded
    DumpValues("EditEnded", e)

    ' save the new cell text if necessary
    If e.SaveValue Then

See Also Classes | SftTree/NET 3.0