AnimationSet.GetAnimationIndex Method

Language:

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(
    Stringname
);
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

Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center