ClockController 類別

定義

以互動方式控制 ClockInteractively controls a Clock.

public ref class ClockController sealed : System::Windows::Threading::DispatcherObject
public sealed class ClockController : System.Windows.Threading.DispatcherObject
type ClockController = class
    inherit DispatcherObject
Public NotInheritable Class ClockController
Inherits DispatcherObject
繼承
ClockController

備註

使用來以互動方式開始、暫停、繼續、搜尋、略過、停止和Clock移除。 ClockControllerUse a ClockController to interactively begin, pause, resume, seek, skip, stop, and remove a Clock. 您只能以互動方式控制根層級的時鐘。You can only interactively control root-level clocks.

屬性

Clock

取得這個 Clock 控制的 ClockControllerGets the Clock controlled by this ClockController.

Dispatcher

取得與這個 Dispatcher 關聯的 DispatcherObjectGets the Dispatcher this DispatcherObject is associated with.

(繼承來源 DispatcherObject)
SpeedRatio

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

方法

Begin()

設定目標 Clock 在下一個刻度開始。Sets the target Clock to begin at the next tick.

CheckAccess()

判斷呼叫的執行是否可以存取這個 DispatcherObjectDetermines whether the calling thread has access to this DispatcherObject.

(繼承來源 DispatcherObject)
Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
Pause()

停止目標 Clock 的進行。Stops the target Clock from progressing.

Remove()

從建立動畫的屬性中移除與這個 Clock 相關聯的 ClockControllerRemoves the Clock associated with this ClockController from the properties it animates. 時鐘與其子時鐘將不再影響這些屬性。The clock and its child clocks will no longer affect these properties.

Resume()

啟用先前暫停的 Clock 以繼續進行。Enables a Clock that was previously paused to resume progressing.

Seek(TimeSpan, TimeSeekOrigin)

在到達下一個刻度時,依據指定的數量搜尋目標 ClockSeeks the target Clock by the specified amount when the next tick occurs. 如果目標時鐘已停止,搜尋作業會使其重新作用。If the target clock is stopped, seeking makes it active again.

SeekAlignedToLastTick(TimeSpan, TimeSeekOrigin)

立即依據指定的數量搜尋目標 ClockSeeks the target Clock by the specified amount immediately. 如果目標時鐘已停止,搜尋作業會使其重新作用。If the target clock is stopped, seeking makes it active again.

SkipToFill()

將目標 Clock 到其使用中週期結束的目前時間往前推進。Advances the current time of the target Clock to the end of its active period.

Stop()

停止目標 ClockStops the target Clock.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)
VerifyAccess()

請強制執行可以存取這個 DispatcherObject 的呼叫執行緒。Enforces that the calling thread has access to this DispatcherObject.

(繼承來源 DispatcherObject)

適用於

另請參閱