IndexOf¶ Returns the zero-based index of an element in the collection. 1myBlockCollection.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.