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 ReadOnly Property TimeSpan As TimeSpan

Property Value

Type: System.TimeSpan

A TimeSpan value.

Exception Condition
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
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: