AnimationClock.GetCurrentValue(Object, Object) 方法

定义

获取 AnimationClock 的当前输出值。Gets the current output value of the AnimationClock.

public:
 System::Object ^ GetCurrentValue(System::Object ^ defaultOriginValue, System::Object ^ defaultDestinationValue);
public object GetCurrentValue (object defaultOriginValue, object defaultDestinationValue);
member this.GetCurrentValue : obj * obj -> obj
Public Function GetCurrentValue (defaultOriginValue As Object, defaultDestinationValue As Object) As Object

参数

defaultOriginValue
Object

如果此时钟的动画没有自己的起始值,则为提供给时钟的原始值。The origin value provided to the clock if its animation does not have its own start value. 如果此时钟是组合链中的第一个时钟,则它将是正在进行动画处理的属性的基值;否则,它将是该组合链中的前一个时钟返回的值。If this clock is the first in a composition chain it will be the base value of the property being animated; otherwise it will be the value returned by the previous clock in the chain

defaultDestinationValue
Object

如果此时钟的动画没有自己的目标值,则为提供给时钟的目标值。The destination value provided to the clock if its animation does not have its own destination value. 如果此时钟是组合链中的第一个时钟,则它将是正在进行动画处理的属性的基值;否则,它将是该组合链中的前一个时钟返回的值。If this clock is the first in a composition chain it will be the base value of the property being animated; otherwise it will be the value returned by the previous clock in the chain

返回

AnimationClock 的当前值。The current value of this AnimationClock.

适用于

另请参阅