HeaderPane
Main
Hide
Share Link
Print

Area Field, ItemClickEventArgs Class

Defines in which area of the control the mouse click occurred.

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

Syntax

public readonly ItemClickAreaEnum Area;
Public ReadOnly Area As ItemClickAreaEnum

Comments

Defines in which area of the control the mouse click occurred.

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

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

See Also ItemClickEventArgs Class | Classes | SftTree/NET 3.0