HeaderPane
Main
Hide
Share Link
Print

Part Field, ItemClickEventArgs Class

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

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

Syntax

public readonly GenericPartClass Part;
Public ReadOnly Part As GenericPartClass

Comments

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

Examples

C# View entire sample code

            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

    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")
        Catch ex As Exception

        End Try
    End If

See Also ItemClickEventArgs Class | Classes | SftTree/NET 3.0