Share via


AnimationSet.GetAnimationIndex(String) Method (Microsoft.DirectX.Direct3D)

Retrieves the index of an animation, given its name.

Definition

Visual Basic Public Function GetAnimationIndex( _
    ByVal name As String _
) As Integer
C# public int GetAnimationIndex(
    string name
);
C++ public:
int GetAnimationIndex(
    StringLeave Sitename
);
JScript public function GetAnimationIndex(
    name : String
) : int;

Parameters

name System.String
Animation name.

Return Value

System.Int32
Returns the index of the named animation; otherwise, throws a Direct3DXException.

Applies To

CompressedAnimationSet, KeyframedAnimationSet