Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeListNode.IsSelected Property

Gets whether the current node is selected.

Namespace: DevExpress.XtraTreeList.Nodes

Assembly: DevExpress.XtraTreeList.v24.2.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