Skip to main content
A newer version of this page is available. .

TreeListNode.IsSelected Property

Gets whether the current node is selected.

Namespace: DevExpress.XtraTreeList.Nodes

Assembly: DevExpress.XtraTreeList.v19.2.dll

Declaration

[Browsable(false)]
public bool IsSelected { get; }

Property Value

Type Description
Boolean

true if the node is selected; otherwise, false

Remarks

The IsSelected property returns whether the node is selected. If the TreeList.OptionsSelection.MultiSelect option is disabled, the IsSelected property returns whether the node is focused. You can also use the TreeListNode.Focused property to get whether the node is focused.

To select a node in code, use the TreeList.SelectNode or TreeList.SelectNodes methods. To discard the selection, use the TreeList.UnselectNode or TreeList.UnselectNodes

You can also use the TreeList.Selection collection’s methods for these purposes. See Node Selection for more information.

See Also