KeyTime.FromTimeSpan(TimeSpan) Méthode

Définition

Crée un KeyTime à l’aide du TimeSpan fourni.

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

Paramètres

timeSpan
TimeSpan

Valeur de la nouvelle instance KeyTime.

Retours

KeyTime

Nouveau KeyTime, initialisé à l’aide de la valeur timeSpan.

Exceptions

Le timeSpan spécifié est en dehors de la plage autorisée.

Remarques

Ce struct représente la projection .NET du struct Windows Runtime (WinRT) KeyTime . Pour plus d’informations, consultez KeyTime dans la référence de l’API UWP.

S’applique à