CompositionEasingFunction.CreateElasticEasingFunction 方法

定义

创建 ElasticEasingFunction 的新实例。

public:
 static ElasticEasingFunction ^ CreateElasticEasingFunction(Compositor ^ owner, CompositionEasingFunctionMode mode, int oscillations, float springiness);
 static ElasticEasingFunction CreateElasticEasingFunction(Compositor const& owner, CompositionEasingFunctionMode const& mode, int const& oscillations, float const& springiness);
public static ElasticEasingFunction CreateElasticEasingFunction(Compositor owner, CompositionEasingFunctionMode mode, int oscillations, float springiness);
function createElasticEasingFunction(owner, mode, oscillations, springiness)
Public Shared Function CreateElasticEasingFunction (owner As Compositor, mode As CompositionEasingFunctionMode, oscillations As Integer, springiness As Single) As ElasticEasingFunction

参数

owner
Compositor

用于创建缓动函数的合成器。

mode
CompositionEasingFunctionMode

一个 值,该值指定动画的内插方式。

oscillations
Int32

int

目标在动画目标位置来回滑动的次数。

springiness
Single

float

春天的刚度。 弹簧值越小,弹簧越僵硬,弹性在每次振荡中降低的强度就越快。

返回

创建的 ElasticEasingFunction 对象。

适用于

另请参阅