TreeNodeExtensionsIndexOfT(T, IListInt32) Method |
Gets the index of a given node inside a tree.
Namespace: Altaxo.CollectionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static IList<int> IndexOf<T>(
this T node,
IList<int> existingList
)
where T : Object, ITreeListNodeWithParent<T>
Parameters
- node T
- The node for which the index is determined.
- existingList IListInt32
- List that can be used to hold the indices. If this parameter is null, a new List will be created.
Type Parameters
- T
- Type of the node.
Return Value
IListInt32Index of the node inside the tree. If
existingList was not null, the
existingList is returned. Otherwise, a new list is returned.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
T. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also