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)

'Declaration
Public ReadOnly Property TimeSpan As TimeSpan

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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft