Back to Devexpress

TreeListOptionsDragAndDrop.AcceptOuterNodes Property

windowsforms-devexpress-dot-xtratreelist-dot-treelistoptionsdraganddrop-375d00d1.md

latest3.3 KB
Original Source

TreeListOptionsDragAndDrop.AcceptOuterNodes Property

Gets or sets whether the current TreeList accepts nodes being dragged from another TreeList control.

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 AcceptOuterNodes { get; set; }
vb
<DefaultValue(False)>
<XtraSerializableProperty>
Public Overridable Property AcceptOuterNodes As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if the current TreeList accepts nodes being dragged from another TreeList control; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AcceptOuterNodes
TreeList

.OptionsDragAndDrop .AcceptOuterNodes

|

Remarks

See the TreeList.CustomizeNewNodeFromOuterData topic to learn more.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AcceptOuterNodes property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-drag-drop-nodes-between-treelists/CS/Q1824862_1/Form1.cs#L20

csharp
InitializeComponent();
    treeList2.OptionsDragAndDrop.AcceptOuterNodes = true;
}

winforms-drag-drop-nodes-between-treelists/VB/Q1824862_1/Form1.vb#L12

vb
InitializeComponent()
    treeList2.OptionsDragAndDrop.AcceptOuterNodes = True
End Sub

See Also

CustomizeNewNodeFromOuterData

TreeListOptionsDragAndDrop Class

TreeListOptionsDragAndDrop Members

DevExpress.XtraTreeList Namespace