TreeListMultiSelection.Item[Int32] Property
In This Article
Gets a TreeListNode object from the collection of selected nodes referenced by the specified index.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.2.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList
#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 |
---|---|
Tree |
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