Int32 ObjectTags.IndexOf(ObjectTag tag)

Returns the index of the given tag. If the given tag does not exist in the collection, returns -1.

Parameters

  • tag
    Type: ObjectTag
    The item to get the index of.

Return Value

Type: Int32
The index of the given tag in this, -1 if the tag is not present.