Back to Devexpress

TreeListOptionsSelection.MultiSelect Property

windowsforms-devexpress-dot-xtratreelist-dot-treelistoptionsselection-53fa1d85.md

latest3.5 KB
Original Source

TreeListOptionsSelection.MultiSelect Property

Gets or sets whether multiple nodes can be selected.

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

Property Value

TypeDefaultDescription
Booleanfalse

true to allow multiple nodes to be selected; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to MultiSelect
TreeList

.OptionsSelection .MultiSelect

|

Remarks

For information on how multiple nodes can be selected by end-users and in code, see the Selecting Nodes and Node Selection documents.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MultiSelect 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-treelist-custom-check-nodes-behavior/CS/Example/TreeListCheckHelper.cs#L13

csharp
{
    treeList.OptionsSelection.MultiSelect = true;
    treeList.OptionsView.ShowCheckBoxes = true;

winforms-treelist-custom-check-nodes-behavior/VB/Example/TreeListCheckHelper.vb#L11

vb
Public Sub New(ByVal treeList As TreeList)
    treeList.OptionsSelection.MultiSelect = True
    treeList.OptionsView.ShowCheckBoxes = True

See Also

Selection

Node Selection

TreeListOptionsSelection Class

TreeListOptionsSelection Members

DevExpress.XtraTreeList Namespace