Gets the total length of the timeline.

Namespace: DigitalRune.Animation
Assembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.1.0.0 (1.1.0.9503)

Syntax

C#
public TimeSpan GetTotalDuration()
Visual Basic
Public Function GetTotalDuration As TimeSpan
Visual C++
public:
virtual TimeSpan GetTotalDuration() sealed

Return Value

The total length of the timeline.

Implements

ITimeline..::..GetTotalDuration()()()()

Remarks

The total duration is the effective length of the animation timeline. Depending on the type of timeline, the total duration can be the natural duration of the underlying animation or might be set explicitly by the user.

Notes to Implementors: The duration must be 0 or a positive value. MaxValue can be returned to indicate that the animation runs forever.

See Also