Back to Devexpress

TreeListNode.IsSelected Property

windowsforms-devexpress-dot-xtratreelist-dot-nodes-dot-treelistnode-a6c64a41.md

latest3.1 KB
Original Source

TreeListNode.IsSelected Property

Gets whether the current node is selected.

Namespace : DevExpress.XtraTreeList.Nodes

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
[Browsable(false)]
public bool IsSelected { get; }
vb
<Browsable(False)>
Public ReadOnly Property IsSelected As Boolean

Property Value

TypeDescription
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

Node Selection

SelectNode

SelectNodes

UnselectNode

UnselectNodes

Selection

TreeListNode Class

TreeListNode Members

DevExpress.XtraTreeList.Nodes Namespace