SpriteCollectionIndexOf Method |
Determine the index of the specified sprite in the collection.
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax public int IndexOf(
SpriteBase sprite
)
Parameters
- sprite
- Type: (Default Namespace)SpriteBase
Sprite to search for
Return Value
Type:
Int32Zero-based index of the sprite if found, otherwise -1.
See Also