NAnt SDK Documentation - v0.92 |

# FormatterCollection.IndexOf Method

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

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

#### Parameters

item
  The Formatter object for which the index is returned.

#### Return Value

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

#### See Also

FormatterCollection Class | NAnt.Core.Types Namespace