FormatterCollection.

IndexOf(Formatter) Method

Summary

Retrieves the index of a specified NAnt.Core.Types.Formatter object in the collection.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Types
Containing Type
FormatterCollection

Syntax

public int IndexOf(Formatter item)

Parameters

Name Type Description
item Formatter The NAnt.Core.Types.Formatter object for which the index is returned.

Return Value

Type Description
int The index of the specified NAnt.Core.Types.Formatter. If the NAnt.Core.Types.Formatter is not currently a member of the collection, it returns -1.