Occurs before the tree node is expanded.
[Visual Basic] Public Event BeforeExpand As TreeViewCancelEventHandler [C#] public event TreeViewCancelEventHandler BeforeExpand; [C++] public: __event TreeViewCancelEventHandler* BeforeExpand;
The event handler receives an argument of type TreeViewCancelEventArgs containing data related to this event. The following TreeViewCancelEventArgs property provides information specific to this event.
Property | Description |
---|---|
Action | Gets the type of action that raised the event. |
Cancel | Gets or sets a value indicating whether the event should be canceled. |
Node | Gets the tree node to be checked, expanded, collapsed, edited, or selected. |
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family
TreeView Class | TreeView Members | Wimark.Controls Namespace