语言

KeyTime.FromPercent(Double) 方法

定义

创建一个新 KeyTime 实例,该实例的属性 KeyTimeType 初始化为指定参数的值。

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

参数

percent
Double

新 KeyTime值。

返回

初始化为值KeyTime的新percent实例。

例外

percent 小于 0.0 或大于 1.0。

注解

百分比参数作为双精度值传递,介于值 0.0 和 1.0 之间。

适用于