語言

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 之間。

適用於