New to Telerik UI for WinForms? Start a free 30-day trial

Provides node and action data for a tree view operation that can be canceled.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class RadTreeViewCancelEventArgs : CancelEventArgs

Inheritance: objectEventArgsCancelEventArgsRadTreeViewCancelEventArgs

Derived Classes: RadTreeViewDragCancelEventArgsTreeNodeEditingEventArgsTreeNodeValidatingEventArgsTreeViewContextMenuOpeningEventArgs

Inherited Members CancelEventArgs.CancelEventArgs.Empty

Constructors

Initializes cancelable event data with an initial cancellation choice and an unknown action.

C#
public RadTreeViewCancelEventArgs(RadTreeNode node, bool cancel)
Parameters:nodeRadTreeNode

The node associated with the operation.

cancelbool

true to cancel the operation initially; otherwise, false.

Initializes cancelable event data for a node and action with an initial cancellation choice.

C#
public RadTreeViewCancelEventArgs(RadTreeNode node, RadTreeViewAction action, bool cancel)
Parameters:nodeRadTreeNode

The node associated with the operation.

actionRadTreeViewAction

The action associated with the operation.

cancelbool

true to cancel the operation initially; otherwise, false.

Initializes cancelable event data for a node and action.

C#
public RadTreeViewCancelEventArgs(RadTreeNode node, RadTreeViewAction action)
Parameters:nodeRadTreeNode

The node associated with the operation.

actionRadTreeViewAction

The action associated with the operation.

Initializes cancelable event data for a node with an unknown action.

C#
public RadTreeViewCancelEventArgs(RadTreeNode node)
Parameters:nodeRadTreeNode

The node associated with the operation.

Properties

Gets the action associated with the operation, or Unknown when none was supplied.

C#
public RadTreeViewAction Action { get; }

Gets the node associated with the operation.

C#
public RadTreeNode Node { get; }

Gets the tree view element associated with the node.

C#
public virtual RadTreeViewElement TreeElement { get; }

Gets the tree view associated with the node.

C#
public virtual RadTreeView TreeView { get; }