TreeViewCancelEventArgs

Wisej.Web.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

TreeViewCancelEventArgs(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.

Name
Type
Description

node

The TreeNode that the event is responding to.

cancel

true to cancel the event; otherwise, false.

action

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

TreeViewCancelEventArgs(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.

Name
Type
Description

nodes

An array of TreeNode that the event is responding to.

cancel

true to cancel the event; otherwise, false.

action

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

Properties

Action

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

Node

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

Nodes

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

Used By

Name
Description

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

Last updated