The XSprite class is the base class for all other sprites in the SGPRTL library. Sprites is an object in space that the displaying engine can render.

The XSprite..::.XSpriteCollection type exposes the following members.

Constructors

  NameDescription
XSprite..::.XSpriteCollectionOverloaded.

Methods

  NameDescription
Add
Adds the XSprite sprite to the collection.
Clear
Removes all sprites from the collection.
Clone
Creates an object that is a copy of this instance.
ContainsOverloaded.
CopyToOverloaded.
DeepClone
Creates an object that is a deep copy of this instance.
Equals

Determines whether the specified Object is equal to the current Object.

(Inherited from Object.)
Finalize

Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

(Inherited from Object.)
FindOverloaded.
FindModelSpriteOverloaded.
GetEnumerator
Gets the enumerator to iterate through all collection items.
GetHashCode

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

(Inherited from Object.)
GetType

Gets the Type of the current instance.

(Inherited from Object.)
IndexOfOverloaded.
Insert
Adds sprite to the sprite collection.
LastFindOverloaded.
LastFindModelSpriteOverloaded.
MemberwiseClone

Creates a shallow copy of the current Object.

(Inherited from Object.)
OnClear
The method is called by the collection when removing all items from it.
OnClearComplete
The method is called by the collection after finishing removing all items.
OnInsert
The method is called by the collection after adding a new item.
OnInsertComplete
The method is called by the collection after adding a new item.
OnRemove
The method is called by the collection when removing an item.
OnRemoveComplete
The method is called by the collection after removing an item.
OnSet
The method is called by the collection when setting an item.
OnSetComplete
The method is called by the collection after setting an item.
OnValidate
This method is called by the collection to validate the item.
Remove
Removes the XSprite sprite from the sprite collection.
RemoveAt
Removes the collection item at the position index.
ToArray
Creates an array from the collection.
ToString

Returns a String that represents the current Object.

(Inherited from Object.)

Properties

  NameDescription
Count
Gets collection items count.
IsFixedSize
Determines whether the collection has fixed size.
IsReadOnly
Determines whether the collection is read-only.
IsSynchronized
Determines whether the access to this collection is synchronized and thus the time-dependent errors cannot occure in the multi-thread programming (is thread-safe).
Item
Gets or sets the XSprite sprite at the given position.
SyncRoot
Returns the object that can be used for synchronizing access to this instance.

See Also