Skip to main content

TreeListNode.IsSelected Property

Gets whether the current node is selected.

Namespace: DevExpress.XtraTreeList.Nodes

Assembly: DevExpress.XtraTreeList.v24.1.dll

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

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