| C1.Win.TreeView Namespace > C1TreeView Class : Collapsing Event |
'Declaration<C1CategoryAttribute("Behavior")> <C1DescriptionAttribute("Occurs before the tree node is collapsed. Allows to cancel the change.")> Public Event Collapsing As C1TreeViewCancelEventHandler
'UsageDim instance As C1TreeView Dim handler As C1TreeViewCancelEventHandler AddHandler instance.Collapsing, handler
[C1Category("Behavior")] [C1Description("Occurs before the tree node is collapsed. Allows to cancel the change.")] public event C1TreeViewCancelEventHandler Collapsing
[C1Category("Behavior")] [C1Description("Occurs before the tree node is collapsed. Allows to cancel the change.")] public: event C1TreeViewCancelEventHandler^ Collapsing
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