Click or drag to resize
GeneralRulesSelectTargetSprite Method
Selects a sprite within a collection, using a 0-based index, to be the target of SetTargetParameter(String, Int32).

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public virtual bool SelectTargetSprite(
	SpriteCollection Sprites,
	int Index
)

Parameters

Sprites
Type: (Default Namespace)SpriteCollection
Collection from which sprite is selected
Index
Type: SystemInt32
0-based index within the collection of the sprite to be selected

Return Value

Type: Boolean
True if the specified index is within the bounds of the collection, False otherwise.
Remarks
This function is provided for compatibility; see SelectTargetSpriteFor(SpriteCollection, Int32, String). This function in equivalent to SelectTargetSpriteFor(SpriteCollection, Int32, String) with an empty string as TargetName.
See Also