TreeListMultiSelection.Item[Int32] Property

Gets a TreeListNode object from the collection of selected nodes referenced by the specified index.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v21.2.dll

Declaration

public TreeListNode this[int index] { get; }

Parameters

Name Type Description
index Int32

The index of the selected node to retrieve.

Property Value

Type Description
TreeListNode

A selected node referenced by the specified index.

Example

The following code expands all selected nodes.

for(int i = 0; i < treeList1.Selection.Count; i++)
   treeList1.Selection[i].Expanded = true;
See Also