Click or drag to resize
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
C#
public int IndexOf(
	SpriteBase sprite
)

Parameters

sprite
Type: (Default Namespace)SpriteBase
Sprite to search for

Return Value

Type: Int32
Zero-based index of the sprite if found, otherwise -1.
See Also