Tests whether the sprite or some of its subsprites has been created according to the given model.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public static bool SpriteContainsModel(
	XSprite sprite,
	XModel model
)

Parameters

sprite
Type: SGP.XSpace..::.XSprite
The XSprite sprite that will be tested.
model
Type: SGP.XSpace..::.XModel
The XModel model instance.

Return Value

Returns trueTruetruetrue (True in Visual Basic) if the sprite or some of its subsprites has been created according to the given model.

Exceptions

ExceptionCondition
System..::.ArgumentNullException sprite is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also