Skip to main content
Version: 3.5

TreeViewCancelEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for the BeforeCheck, BeforeCollapse, BeforeExpand, and BeforeSelect events of a TreeView control.

public class TreeViewCancelEventArgs : CancelEventArgs

Constructors​

Instance memberTreeViewCancelEventArgs(node, cancel, action)​

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.

NameTypeDescription
nodeTreeNodeThe TreeNode that the event is responding to.
cancelBooleantrue to cancel the event; otherwise, false.
actionTreeViewActionOne of the TreeViewAction values indicating the type of action that raised the event.

Instance memberTreeViewCancelEventArgs(nodes, cancel, action)​

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.

NameTypeDescription
nodesTreeNode[]An array of TreeNode that the event is responding to.
cancelBooleantrue to cancel the event; otherwise, false.
actionTreeViewActionOne of the TreeViewAction values indicating the type of action that raised the event.

Properties​

Instance memberAction​

TreeViewAction: Returns the type of action that raised the event.

Instance memberNode​

TreeNode: Returns the tree node that has been checked, expanded, collapsed, or selected.

Instance memberNodes​

TreeNode[]: Returns the tree nodes that has been selected in a multiselection treeview.

Used By​

NameDescription
TreeViewCancelEventHandlerRepresents the method that will handle the BeforeCheck, BeforeCollapse, BeforeExpand, or BeforeSelect event of a TreeView.