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)

Syntax

Public Shared Function FromTimeSpan ( _
    timeSpan As TimeSpan _
) As KeyTime
public static KeyTime FromTimeSpan(
    TimeSpan timeSpan
)

Parameters

Return Value

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

Exceptions

Exception Condition
ArgumentOutOfRangeException

The specified timeSpan is outside the allowed range.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

KeyTime Structure

System.Windows.Media.Animation Namespace