Skip to main content
All docs
V18.2

TreeListNode.Selected Property

Gets or sets whether the current node is selected.

Namespace: DevExpress.XtraTreeList.Nodes

Assembly: DevExpress.XtraTreeList.v18.2.dll

Declaration

[Browsable(false)]
public virtual bool Selected { get; set; }

Property Value

Type Description
Boolean

true if the node is selected; otherwise, false.

Remarks

The Tree List provides a multi select feature which is activated by enabling the TreeListOptionsSelection.MultiSelect option. If multiple nodes can be selected, the Selected property indicates whether the node is selected. If the multi select functionality is disabled, the Selected property indicates whether the node is currently focused. In this case the TreeListNode.Focused property can also be used.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Selected 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.

See Also