Export (0) Print
Expand All

KeyTime.FromPercent 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)

public static KeyTime FromPercent (
	double percent
)
public static KeyTime FromPercent (
	double percent
)
public static function FromPercent (
	percent : double
) : KeyTime
You cannot use methods in XAML.

Parameters

percent

The value to of the new KeyTime.

Return Value

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

Exception typeCondition

ArgumentOutOfRangeException

percent is less than 0.0 or greater than 1.0.

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

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2015 Microsoft