Share via


ScalarKeyFrameAnimation.InsertKeyFrame 方法

定義

多載

InsertKeyFrame(Single, Single)

插入主要畫面格。

InsertKeyFrame(Single, Single, CompositionEasingFunction)

插入主要畫面格。

InsertKeyFrame(Single, Single)

插入主要畫面格。

public:
 virtual void InsertKeyFrame(float normalizedProgressKey, float value) = InsertKeyFrame;
/// [Windows.Foundation.Metadata.Overload("InsertKeyFrame")]
void InsertKeyFrame(float const& normalizedProgressKey, float const& value);
[Windows.Foundation.Metadata.Overload("InsertKeyFrame")]
public void InsertKeyFrame(float normalizedProgressKey, float value);
function insertKeyFrame(normalizedProgressKey, value)
Public Sub InsertKeyFrame (normalizedProgressKey As Single, value As Single)

參數

normalizedProgressKey
Single

float

主要畫面格的發生時間,以動畫 Duration的百分比表示。 允許的值是從 0.0 到 1.0。

value
Single

float

主要畫面格的值。

屬性

另請參閱

適用於

InsertKeyFrame(Single, Single, CompositionEasingFunction)

插入主要畫面格。

public:
 virtual void InsertKeyFrame(float normalizedProgressKey, float value, CompositionEasingFunction ^ easingFunction) = InsertKeyFrame;
/// [Windows.Foundation.Metadata.Overload("InsertKeyFrameWithEasingFunction")]
void InsertKeyFrame(float const& normalizedProgressKey, float const& value, CompositionEasingFunction const& easingFunction);
[Windows.Foundation.Metadata.Overload("InsertKeyFrameWithEasingFunction")]
public void InsertKeyFrame(float normalizedProgressKey, float value, CompositionEasingFunction easingFunction);
function insertKeyFrame(normalizedProgressKey, value, easingFunction)
Public Sub InsertKeyFrame (normalizedProgressKey As Single, value As Single, easingFunction As CompositionEasingFunction)

參數

normalizedProgressKey
Single

float

主要畫面格的發生時間,以動畫 Duration的百分比表示。 允許的值是從 0.0 到 1.0。

value
Single

float

主要畫面格的值。

easingFunction
CompositionEasingFunction

用來在主要畫面格之間插補的 easing 函式。

屬性

另請參閱

適用於