Back to Devexpress

TreeListOptionsDragAndDrop.InsertNodesInSelectionOrder Property

windowsforms-devexpress-dot-xtratreelist-dot-treelistoptionsdraganddrop-091711ea.md

latest3.0 KB
Original Source

TreeListOptionsDragAndDrop.InsertNodesInSelectionOrder Property

Gets or sets whether nodes being dragged are dropped in the order they are in the tree list, or in the order they are selected.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool InsertNodesInSelectionOrder { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property InsertNodesInSelectionOrder As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if nodes are dropped in the order they are selected; false if nodes are droped in the order they are in the tree list.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to InsertNodesInSelectionOrder
TreeList

.OptionsDragAndDrop .InsertNodesInSelectionOrder

|

Remarks

The InsertNodesInSelectionOrder property specifies whether nodes being dragged are dropped in the order they are selected, or in the order they are in the tree list. When a user drags nodes, a preview image is also displayed near the mouse pointer. Nodes in the preview are arranged in the order they were selected by default. Set the InsertNodesInSelectionOrder property to false to drop and arrange nodes in the same order as in the tree list.

For example, if departments are selected in the following order: Boston, Toronto, San Francisco, Monterey, this order is preserved in the preview by default.

The order in the preview matches the tree list order if the InsertNodesInSelectionOrder property is set to false.

See Also

MultiSelect

TreeListOptionsDragAndDrop Class

TreeListOptionsDragAndDrop Members

DevExpress.XtraTreeList Namespace