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

Provides drag-and-drop event data that lets handlers cancel a start, candidate drop, or node drop.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class RadTreeViewDragCancelEventArgs : RadTreeViewCancelEventArgs

Inheritance: objectEventArgsCancelEventArgsRadTreeViewCancelEventArgsRadTreeViewDragCancelEventArgs

Inherited Members RadTreeViewCancelEventArgs.NodeRadTreeViewCancelEventArgs.TreeElementRadTreeViewCancelEventArgs.TreeViewRadTreeViewCancelEventArgs.ActionCancelEventArgs.CancelEventArgs.Empty...

Constructors

Initializes cancelable drag data with an initial cancellation state.

C#
public RadTreeViewDragCancelEventArgs(RadTreeNode node, RadTreeNode targetNode, ArrowDirection direction, bool cancel)
Parameters:nodeRadTreeNode

The node being dragged.

targetNodeRadTreeNode

The candidate or final target node, or null before a target is identified or when the operation has no node target.

directionArrowDirection

An arrow direction stored by this instance but not exposed through a property.

cancelbool

true to cancel the operation initially; otherwise, false.

Initializes cancelable drag data for a node and an optional target, with cancellation disabled.

C#
public RadTreeViewDragCancelEventArgs(RadTreeNode node, RadTreeNode targetNode)
Parameters:nodeRadTreeNode

The node being dragged.

targetNodeRadTreeNode

The candidate or final target node, or null before a target is identified or when the operation has no node target.

Properties

Gets the target-relative placement selected for the drag, or None when no position is established.

C#
public DropPosition DropPosition { get; protected set; }

Gets the candidate or final target node, or null before a target is identified or when the operation has no node target.

C#
public RadTreeNode TargetNode { get; }