[]
        
(Showing Draft Content)

C1.C1Preview.NamedCollection.IndexOfName

IndexOfName Method

IndexOfName(string)

Returns the 0-based index of a NamedCollectionItem with specified name in the current NamedCollection.

Declaration
public int IndexOfName(string name)
Parameters
Type Name Description
string name

The name of the item to locate.

Returns
Type Description
int

The 0-based index of the specified item, or -1 if the item was not found.