Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

KeyTime.FromPercent(Double) Method

Definition

Namespace:
System.Windows.Media.Animation
Assembly:
PresentationCore.dll

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

public:
 static System::Windows::Media::Animation::KeyTime FromPercent(double percent);
public static System.Windows.Media.Animation.KeyTime FromPercent(double percent);
static member FromPercent : double -> System.Windows.Media.Animation.KeyTime
Public Shared Function FromPercent (percent As Double) As KeyTime

Parameters

percent
Double

The value of the new KeyTime.

Returns

A new KeyTime instance, initialized to the value of percent.

Exceptions

percent is less than 0.0 or greater than 1.0.

Remarks

The percent parameter is passed as a double, ranging between the values 0.0 and 1.0.

Applies to


Feedback

Was this page helpful?