Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

KeyTime.TimeSpan Property

Gets the time when the key frame ends expressed as a time relative to the beginning of the animation.

Namespace:  System.Windows.Media.Animation
Assembly:  PresentationCore (in PresentationCore.dll)

public TimeSpan TimeSpan { get; }

Property Value

Type: System.TimeSpan
A TimeSpan value.

ExceptionCondition
InvalidOperationException

If this instance is not of type TimeSpan.

When a key time is expressed as a time span, the key frame ending time is specified as a time relative to the beginning of the animation. For example, if the time span is set to "0:0:2", the key frame will end two seconds after the animation begins.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft