FromTimeSpan Method
Collapse the table of content
Expand the table of content

KeyTime.FromTimeSpan Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates a new KeyTime, using the supplied TimeSpan.

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

'Declaration
Public Shared Function FromTimeSpan ( _
	timeSpan As TimeSpan _
) As KeyTime

Parameters

timeSpan
Type: System.TimeSpan
The value of the new KeyTime.

Return Value

Type: System.Windows.Media.Animation.KeyTime
A new KeyTime, initialized to the value of timeSpan.

ExceptionCondition
ArgumentOutOfRangeException

The specified timeSpan is outside the allowed range.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft