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 abstract TimeSpan GetTotalDuration()
Visual Basic
Public MustOverride Function GetTotalDuration As TimeSpan
Visual C++
public:
virtual TimeSpan GetTotalDuration() abstract

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