Wimark.Controls Class Library  

TreeView.BeforeCollapse Event

Occurs before the tree node is collapsed.

[Visual Basic]
Public Event BeforeCollapse As TreeViewCancelEventHandler 
[C#]
public event TreeViewCancelEventHandler BeforeCollapse;
[C++]
public: __event TreeViewCancelEventHandler* BeforeCollapse;

Event Data

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family

See Also

TreeView Class | TreeView Members | Wimark.Controls Namespace