Skip to content

Children<TNode>.IndexOf Method ​

Definition ​

Gets the index of the specified node in this collection.

c#
public int IndexOf(TNode node);

View source

Parameters ​

NameTypeDescription
nodeTNodeThe node to search for.

Returns ​

Int32

The index of the node or -1 if it is not in the collection.