KeyTime.FromPercent(Double) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立一個新 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
參數
傳回
一個新 KeyTime 實例,初始化為 的 percent值。
例外狀況
percent 小於0.0或大於1.0。
備註
百分比參數以雙重形式傳遞,範圍介於 0.0 到 1.0 之間。