Atom.NET documentation

ScopedElementCollection.IndexOf Method 

Searches for the specified ScopedElement and returns the zero-based index of the first occurrence within the entire ScopedElementCollection.

[Visual Basic]
Public Function IndexOf( _
   ByVal element As ScopedElement _
) As Integer
[C#]
public int IndexOf(
   ScopedElement element
);

Parameters

element
The ScopedElement to locate in the ScopedElementCollection.

Return Value

The zero-based index of the first occurrence of element within the entire ScopedElementCollection, if found; otherwise, -1.

See Also

ScopedElementCollection Class | Atom.AdditionalElements Namespace