KeyTime.FromTimeSpan Method (TimeSpan)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a new KeyTime instance, with the KeyTimeType property initialized to the value of the specified parameter.

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

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 instance, initialized to the value of timeSpan.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: