Provides data for the ItemClick event and ItemDoubleClick event.
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
Inheritance
public class ItemClickEventArgs : System.EventArgs;
Public Class ItemClickEventArgs
Inherits System.EventArgsThis class cannot be instantiated.
![]() | Area | Defines in which area of the control the mouse click occurred. |
![]() | Cell | Defines which cell was clicked. May be null/Nothing indicating that no cell is associated with this event. |
![]() ![]() ![]() | Empty | Provides a value to use with events that do not have event data. |
![]() | Handled | Defines whether the event handler handled the event. This value can be modified by the event handler. |
![]() | Item | Defines which item was clicked. May be null/Nothing indicating that no item is associated with this event. |
![]() | MouseEv | The original mouse event data associated with this event. |
![]() | Part | Defines which part was clicked. May be null/Nothing indicating that no part is associated with this event. |
![]() | Usage | Defines in which area of the control the mouse click occurred. |
![]() ![]() | Equals | Determines whether the specified object is equal to the current object. |
![]() ![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. |
![]() ![]() | GetHashCode | Serves as the default hash function. |
![]() ![]() | GetType | Gets the Type of the current instance. |
![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. |
![]() ![]() ![]() | ReferenceEquals | Determines whether the specified Object instances are the same instance. |
![]() ![]() | ToString | Returns a string that represents the current object. |
private void sftTree1_HeaderHeightChanged(object sender, EventArgs e) {
DumpValues("HeaderHeightChanged", e);
}
private void sftTree1_HorizontalOffsetChanged(object sender, Softelvdm.SftTreeNET.HorizontalOffsetChangedEventArgs e) {
DumpValues("HorizontalOffsetChanged", e);
}
private void sftTree1_ItemClick(object sender, Softelvdm.SftTreeNET.ItemClickEventArgs e) {
DumpValues("ItemClick", e);
if (e.Item != null && e.Cell != null && e.Item.UsageLocation == UsageLocationEnum.items && e.Cell.ColumnIndex == 2)
e.Cell.Edit(); // Start cell editing
}
Private Sub SftTree1_HeaderHeightChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SftTree1.HeaderHeightChanged DumpValues("HeaderHeightChanged", e) End Sub Private Sub SftTree1_HorizontalOffsetChanged(ByVal sender As System.Object, ByVal e As Softelvdm.SftTreeNET.HorizontalOffsetChangedEventArgs) Handles SftTree1.HorizontalOffsetChanged DumpValues("HorizontalOffsetChanged ", e) End Sub Private Sub SftTree1_ItemClick(ByVal sender As System.Object, ByVal e As Softelvdm.SftTreeNET.ItemClickEventArgs) Handles SftTree1.ItemClick DumpValues("ItemClick", e) If Not e.Item Is Nothing And Not e.Cell Is Nothing Then If e.Item.UsageLocation = UsageLocationEnum.items And e.Cell.ColumnIndex = 2 Then e.Cell.Edit() ' Start cell editing End If End If
See Also Classes | SftTree/NET 3.0