MediaClock 類別

定義

透過 MediaTimeline 維護媒體的時間狀態。Maintains the timing state for media through a MediaTimeline.

public ref class MediaClock : System::Windows::Media::Animation::Clock
public class MediaClock : System.Windows.Media.Animation.Clock
type MediaClock = class
    inherit Clock
Public Class MediaClock
Inherits Clock
繼承

建構函式

MediaClock(MediaTimeline)

初始化 MediaClock 類別的新執行個體。Initializes a new instance of the MediaClock class.

屬性

Controller

取得 ClockController,可用於啟動、暫停、繼續、搜尋、略過、停止或移除這個 ClockGets a ClockController that can be used to start, pause, resume, seek, skip, stop, or remove this Clock.

(繼承來源 Clock)
CurrentGlobalSpeed

取得時鐘目前行進速率,與實際時間相比較。Gets the rate at which the clock's time is currently progressing, compared to real-world time.

(繼承來源 Clock)
CurrentGlobalTime

取得目前全域時間,由 WPFWPF 計時系統建立。Gets the current global time, as established by the WPFWPF timing system.

(繼承來源 Clock)
CurrentIteration

取得這個時鐘的目前反覆項目。Get the current iteration of this clock.

(繼承來源 Clock)
CurrentProgress

取得這個 Clock 在其目前反覆項目內的目前進度。Gets the current progress of this Clock within its current iteration.

(繼承來源 Clock)
CurrentState

取得值,指出時鐘目前為 ActiveFillingStoppedGets a value indicating whether the clock is currently Active, Filling, or Stopped.

(繼承來源 Clock)
CurrentTime

取得這個時鐘在其目前反覆項目內的目前時間。Gets this clock's current time within its current iteration.

(繼承來源 Clock)
Dispatcher

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

(繼承來源 DispatcherObject)
HasControllableRoot

取得值,這個值表示這個 Clock 是否為可控制之時鐘樹狀結構的一部分。Gets a value that indicates whether this Clock is part of a controllable clock tree.

(繼承來源 Clock)
IsPaused

取得值,這個值表示這個 Clock 或任何其父代是否暫停。Gets a value that indicates whether this Clock, or any of its parents, is paused.

(繼承來源 Clock)
NaturalDuration

取得這個時鐘之 Timeline 的自然持續時間。Gets the natural duration of this clock's Timeline.

(繼承來源 Clock)
Parent

取得這個時鐘的父時鐘。Gets the clock that is the parent of this clock.

(繼承來源 Clock)
Timeline

取得描述時鐘控制行為的 MediaTimelineGets the MediaTimeline that describes the controlling behavior of the clock.

方法

CheckAccess()

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

(繼承來源 DispatcherObject)
DiscontinuousTimeMovement()

當移動中斷時,便會叫用。Invoked when movement is discontinues.

Equals(Object)

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

(繼承來源 Object)
GetCanSlip()

擷取值,這個值表示媒體時鐘是否可略過。Retrieves a value that indicates whether the media clock can slip.

GetCurrentTimeCore()

擷取值,這個值表示實際的媒體時間。Retrieves a value that identifies the actual media time. 這個值可用來略過同步處理。This value can be used for slip synchronization.

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)
SpeedChanged()

當時鐘速度變更時,便會叫用。Invoked when the clock speed has changed.

Stopped()

當時鐘停止時,便會叫用。Invoked when the clock is stopped.

ToString()

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

(繼承來源 Object)
VerifyAccess()

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

(繼承來源 DispatcherObject)

事件

Completed

當這個時鐘完成播放時發生。Occurs when this clock has completely finished playing.

(繼承來源 Clock)
CurrentGlobalSpeedInvalidated

時鐘速度更新時發生。Occurs when the clock's speed is updated.

(繼承來源 Clock)
CurrentStateInvalidated

時鐘的 CurrentState 屬性更新時發生。Occurs when the clock's CurrentState property is updated.

(繼承來源 Clock)
CurrentTimeInvalidated

當這個時鐘的 CurrentTime 變成無效時發生。Occurs when this clock's CurrentTime becomes invalid.

(繼承來源 Clock)
RemoveRequested

當在這個 Remove() 或它的一個父時鐘上呼叫 Clock 方法時發生。Occurs when the Remove() method is called on this Clock or one of its parent clocks.

(繼承來源 Clock)

適用於

另請參閱