Back to Devexpress

TreeListOptionsDragAndDrop.CanCloneNodesOnDrop Property

windowsforms-devexpress-dot-xtratreelist-dot-treelistoptionsdraganddrop-f7b6cefb.md

latest2.8 KB
Original Source

TreeListOptionsDragAndDrop.CanCloneNodesOnDrop Property

Gets or sets whether end-users are allowed to clone nodes using drag-and-drop.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool CanCloneNodesOnDrop { get; set; }
vb
<DefaultValue(False)>
<XtraSerializableProperty>
Public Overridable Property CanCloneNodesOnDrop As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true , to allow end-users to clone nodes using drag-and-drop; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to CanCloneNodesOnDrop
TreeList

.OptionsDragAndDrop .CanCloneNodesOnDrop

|

Remarks

If the CanCloneNodesOnDrop option is set to true , nodes can be cloned when an end-user moves them within the TreeList or between TreeList controls using drag-and-drop. The CTRL key needs to be pressed to enable copy mode during node dragging.

To allow nodes to be copied when performing drag-and-drop from a source TreeList control to a destination TreeList control, the CanCloneNodesOnDrop property must be enabled for the destination TreeList control. See TreeList.CustomizeNewNodeFromOuterData topic for more information.

Node drag-and-drop operations can be enabled with the TreeListOptionsDragAndDrop.DragNodesMode option.

See Also

DragNodesMode

CustomizeNewNodeFromOuterData

TreeListOptionsDragAndDrop Class

TreeListOptionsDragAndDrop Members

DevExpress.XtraTreeList Namespace