| C1.Win.TreeView Namespace > C1TreeView Class : BeforeContextMenuShow Event |
'Declaration<C1CategoryAttribute("Behavior")> <C1DescriptionAttribute("Occurs before the context menu is shown.")> Public Event BeforeContextMenuShow As EventHandler(Of C1TreeViewCancelEventArgs)
'UsageDim instance As C1TreeView Dim handler As EventHandler(Of C1TreeViewCancelEventArgs) AddHandler instance.BeforeContextMenuShow, handler
[C1Category("Behavior")] [C1Description("Occurs before the context menu is shown.")] public event EventHandler<C1TreeViewCancelEventArgs> BeforeContextMenuShow
[C1Category("Behavior")] [C1Description("Occurs before the context menu is shown.")] public: event EventHandler<C1TreeViewCancelEventArgs^>^ BeforeContextMenuShow
The event handler receives an argument of type C1TreeViewCancelEventArgs containing data related to this event. The following C1TreeViewCancelEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| Cancel | (Inherited from System.ComponentModel.CancelEventArgs) |
| Node | Gets the tree node that has been checked, expanded, collapsed, or selected. |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2