Click or drag to resize
DigitalRuneTimelineClipDuration Property
Gets or sets the duration for which the animation clip is played.

Namespace: DigitalRune.Animation
Assembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax
public Nullable<TimeSpan> Duration { get; set; }

Property Value

Type: NullableTimeSpan
The duration for which the animation clip is played. The default value is , which indicates that the animation clip should be played once from ClipStart to ClipEnd.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionvalue is negative.
Remarks

The properties ClipStart and ClipEnd define the duration of the animation clip. If the properties are not set then the original animation is played in its entirety. The property Duration can be set to override the duration of the animation clip. If Duration is greater than the length of the animation clip, the clip will be repeated using the defined loop behavior (see LoopBehavior).

The effective duration depends on the Speed: For example, an animation clip with a delay of 3 seconds, a duration of 10 seconds and a speed ratio of 2 will start after 3 seconds and run for 5 seconds with double speed.

The default value is , which indicates that the duration is 'automatic' or 'unknown'. In this case the animation clip plays exactly once. A duration of MaxValue can be set to repeat the animation clip forever.

See Also