Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
FromTimeSpan Method
Collapse the table of content
Expand the table of content

KeyTime::FromTimeSpan Method

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)

static KeyTime FromTimeSpan(
	TimeSpan 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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft