HeaderPane
Main
Hide
Share Link
Print

Item Field, ItemClickEventArgs Class

Defines which item was clicked. May be null/Nothing indicating that no item is associated with this event.

Class: ItemClickEventArgs
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public readonly ItemClass Item;
Public ReadOnly Item As ItemClass

Comments

Defines which item was clicked. May be null/Nothing indicating that no item is associated with this event.

Examples

C# View entire sample code

                            ArrowLoc = ArrowLocationEnum.BottomLeft;
                    }
                }
            }
            ToolTipClass.ShowToolTip(sftTree1, loc, ttIcon, title, text, ArrowLoc);
        }

        private void sftTree1_ItemClick(object sender, ItemClickEventArgs e) {
            if (e.Item != null && e.Cell != null) {
                if (e.Item.UsageLocation == UsageLocationEnum.footer &&
                        e.Area == ItemClickAreaEnum.Cell &&
                        e.Item.VisibleIndex == 0 && e.Cell.ColumnIndex == 2 &&
                        e.Part is ButtonPartClass) {
                    try {
                        System.Diagnostics.Process.Start("http://www.softelvdm.com/treenet.html");
                    } catch {

VB.NET View entire sample code

                End If
            End If
        End If
    End If
    ToolTipClass.ShowToolTip(sftTree1, loc, ttIcon, title, text, ArrowLoc)
End Sub

Private Sub sftTree1_ItemClick(ByVal sender As System.Object, ByVal e As Softelvdm.SftTreeNET.ItemClickEventArgs) Handles sftTree1.ItemClick
  If Not e.Item Is Nothing And Not e.Cell Is Nothing Then
    If e.Item.UsageLocation = UsageLocationEnum.footer And _
        e.Area = ItemClickAreaEnum.Cell And _
        e.Item.VisibleIndex = 0 And e.Cell.ColumnIndex = 2 And _
        TypeOf e.Part Is ButtonPartClass Then

        Try
            System.Diagnostics.Process.Start("http://www.softelvdm.com/treenet.html")

See Also ItemClickEventArgs Class | Classes | SftTree/NET 3.0