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.
- C#
- VB.NET
public class TreeViewCancelEventArgs : CancelEventArgs
Public Class TreeViewCancelEventArgs
Inherits 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 | TreeNode | The TreeNode that the event is responding to. |
| cancel | Boolean | true to cancel the event; otherwise, false. |
| action | TreeViewAction | 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 | TreeNode[] | An array of TreeNode that the event is responding to. |
| cancel | Boolean | true to cancel the event; otherwise, false. |
| action | TreeViewAction | 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 |
|---|---|
| TreeViewCancelEventHandler | Represents the method that will handle the BeforeCheck, BeforeCollapse, BeforeExpand, or BeforeSelect event of a TreeView. |