Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TreeViewCancelEventArgs Constructor

TreeViewCancelEventArgs Constructor

Initializes a new instance of the TreeViewCancelEventArgs class with the specified tree node, a value specifying whether the event is to be canceled, and the type of tree view action that raised the event.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public TreeViewCancelEventArgs(
	TreeNode node,
	bool cancel,
	TreeViewAction action
)

Parameters

node
Type: System.Windows.Forms.TreeNode

The TreeNode that the event is responding to.

cancel
Type: System.Boolean

true to cancel the event; otherwise, false.

action
Type: System.Windows.Forms.TreeViewAction

One of the TreeViewAction values indicating the type of action that raised the event.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft