Click or drag to resize
SpriteCollectionAdd Method
Add a dynamic sprite to the end of this sprite collection.

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public int Add(
	SpriteBase sprite
)

Parameters

sprite
Type: (Default Namespace)SpriteBase
Sprite to be added

Return Value

Type: Int32
Index of the new sprite in the collection
Remarks
For more information about dynamic sprites, see staticSize. This function will fail if the number of sprites in the collection is already equal to or greater than maxCollectionSize.
See Also