NAnt SDK Documentation - v0.92

FormatterElementCollection.IndexOf Method 

Retrieves the index of a specified FormatterElement object in the collection.

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

Parameters

item
The FormatterElement object for which the index is returned.

Return Value

The index of the specified FormatterElement. If the FormatterElement is not currently a member of the collection, it returns -1.

See Also

FormatterElementCollection Class | NAnt.NUnit.Types Namespace