Skip to content

IndexOf

Returns the zero-based index of an element in the collection.

1
myBlockCollection.IndexOf(item: Block):number

Parameters

Block item
    The element to find.

Returns

The index of the element, or -1 when it is not in the collection.