Returns the total playing time of the current Animation (in milliseconds).[Visual Basic] Public Function TotalTime() As Integer[C#] public int TotalTime();
An Integer value with the total playing time of the Animation-object.
This function returns the total playing time of the whole movie. This is actually the sum of the DisplayTimes of all AnimationFrames.
'Create a new Animation...
Dim myAnimation As Animation
'...and load an existing ToolTipsFactory Animation from file.
'Write the total playing time of the movie to
Dim totaltime As Integer
totaltime = CInt(myAnimation.TotalTime / 1000)
Debug.WriteLine("Total time: " & totaltime & " seconds.")