KeyTimeHelper.FromTimeSpan(TimeSpan) Method

Definition

Generates a new KeyTime with initial data based on the specified TimeSpan.

Equivalent WinUI method: Microsoft.UI.Xaml.Media.Animation.KeyTimeHelper.FromTimeSpan.

 static KeyTime FromTimeSpan(TimeSpan const& timeSpan);
public static KeyTime FromTimeSpan(System.TimeSpan timeSpan);
function fromTimeSpan(timeSpan)
Public Shared Function FromTimeSpan (timeSpan As TimeSpan) As KeyTime

Parameters

timeSpan
TimeSpan TimeSpan

The TimeSpan data value to establish.

Returns

KeyTime

The generated KeyTime value.

Applies to