Redigera

Dela via


KeyTime.FromTimeSpan(TimeSpan) Method

Definition

Creates a new KeyTime, using the supplied TimeSpan.

public:
 static Windows::UI::Xaml::Media::Animation::KeyTime FromTimeSpan(TimeSpan timeSpan);
public static Windows.UI.Xaml.Media.Animation.KeyTime FromTimeSpan (TimeSpan timeSpan);
static member FromTimeSpan : TimeSpan -> Windows.UI.Xaml.Media.Animation.KeyTime
Public Shared Function FromTimeSpan (timeSpan As TimeSpan) As KeyTime

Parameters

timeSpan
TimeSpan

The value of the new KeyTime.

Returns

A new KeyTime, initialized to the value of timeSpan.

Exceptions

The specified timeSpan is outside the allowed range.

Remarks

This struct represents the .NET projection of the Windows Runtime (WinRT) KeyTime struct. For more information, see KeyTime in the UWP API reference.

Applies to