ClockController.SpeedRatio 屬性

定義

取得或設定目標 Clock 的互動速度。Gets or sets the interactive speed of the target Clock.

public:
 property double SpeedRatio { double get(); void set(double value); };
public double SpeedRatio { get; set; }
member this.SpeedRatio : double with get, set
Public Property SpeedRatio As Double

屬性值

大於零的有限值,其描述目標時鐘的互動速度。A finite value greater than zero that describes the interactive speed of the target clock. 這個值已乘以此時鐘的 TimelineSpeedRatio 值。This value is multiplied against the value of the SpeedRatio of the clock's Timeline. 例如,如果時間軸的 SpeedRatio 為 0.5,而 ClockController 物件的 SpeedRatio 為 3.0,則此時間軸以正常速度的 1.5 倍 (0.5 * 3.0) 移動。For example, if the timeline's SpeedRatio is 0.5 and the ClockController object's SpeedRatio is 3.0, the timeline moves at 1.5 times normal speed (0.5 * 3.0). 預設值為 1.0。The default value is 1.0.

備註

設定這個屬性在下一個刻度之前不會有任何作用。Setting this property has no effect until the next tick. 如果您設定此屬性, 然後在下一個滴答發生之前取得其值, 則會取得舊的值。If you set this property and then get its value before the next tick occurs, you'll get the old value. 這個屬性會在下一個刻度之後傳回新的值。This property will return the new value after the next tick.

設定這個屬性並不會變更基礎時間軸的SpeedRatio值。Setting this property does not change the value of the underlying timeline's SpeedRatio.

設定此屬性會觸發目標時鐘的CurrentGlobalSpeedInvalidated事件。Setting this property triggers the target clock's CurrentGlobalSpeedInvalidated event.

適用於

另請參閱