ClockController.SkipToFill 方法

定义

将目标 Clock 的当前时间向前调至其活动周期的结束时间。Advances the current time of the target Clock to the end of its active period.

public:
 void SkipToFill();
public void SkipToFill ();
member this.SkipToFill : unit -> unit
Public Sub SkipToFill ()

注解

此方法将目标时钟的当前时间提升到其活动周期的结束时间;此时时钟的行为由FillBehaviorTimeline的设置指定。This method advances the target clock's current time to the end of its active period; the clock's behavior at this point is specified by the FillBehavior setting of its Timeline. 如果时间线的FillBehavior属性设置为HoldEnd, 则时钟将填充; 如果属性设置为Stop, 则时钟将停止。If the timeline's FillBehavior property is set to HoldEnd, the clock fills; if the property is set to Stop, the clock stops.

仅当目标时钟的CurrentState为时Active, 此方法才有效。This method has an effect only if the target clock's CurrentState is Active.

直到下一次处理计时周期时, 此方法才会对计时树产生任何影响。This method has no effect on the timing tree until the next time a tick is processed. 副作用是, 在此之前, 也不会引发相应的事件。As a side-effect, the appropriate events also will not be raised until then.

将情节提要前进到其填充期会CurrentGlobalSpeedInvalidated触发CurrentStateInvalidated和事件。Advancing a storyboard to its fill period triggers the CurrentGlobalSpeedInvalidated and CurrentStateInvalidated events.

适用于