Timeline.CreateClock Timeline.CreateClock Timeline.CreateClock Timeline.CreateClock Method

定義

從這個 Clock 建立 TimelineCreates a Clock from this Timeline.

多載

CreateClock() CreateClock() CreateClock() CreateClock()

從此 Timeline 建立可控制的新 ClockCreates a new, controllable Clock from this Timeline. 如果此 Timeline 具有子系,將會使用 Timeline 建立時鐘的樹狀結構作為根。If this Timeline has children, a tree of clocks is created with this Timeline as the root.

CreateClock(Boolean) CreateClock(Boolean) CreateClock(Boolean) CreateClock(Boolean)

從這個 Clock 建立新的 Timeline 並指定新的 Clock 是否是可控制的。Creates a new Clock from this Timeline and specifies whether the new Clock is controllable. 如果此 Timeline 具有子系,將會使用 Timeline 建立時鐘的樹狀結構作為根。If this Timeline has children, a tree of clocks is created with this Timeline as the root.

CreateClock() CreateClock() CreateClock() CreateClock()

從此 Timeline 建立可控制的新 ClockCreates a new, controllable Clock from this Timeline. 如果此 Timeline 具有子系,將會使用 Timeline 建立時鐘的樹狀結構作為根。If this Timeline has children, a tree of clocks is created with this Timeline as the root.

public:
 System::Windows::Media::Animation::Clock ^ CreateClock();
public System.Windows.Media.Animation.Clock CreateClock ();
member this.CreateClock : unit -> System.Windows.Media.Animation.Clock
Public Function CreateClock () As Clock

傳回

從此 Timeline 建構可控制的新 ClockA new, controllable Clock constructed from this Timeline. 如果此 Timeline 是包含子時間表的 TimelineGroup,將會使用從此 Timeline 建立的可控制 Clock 來建立 Clock 物件的樹狀結構作為根。If this Timeline is a TimelineGroup that contains child timelines, a tree of Clock objects is created with a controllable Clock created from this Timeline as the root.

備註

雖然這Timeline可能是一或多個TimelineGroup物件的子系, 但會忽略這項資訊: 這個方法Timeline會將目前Timeline的視為根。Although this Timeline may be the child of one or more TimelineGroup objects, this information is ignored: this method treats the current Timeline as a root Timeline.

CreateClock(Boolean) CreateClock(Boolean) CreateClock(Boolean) CreateClock(Boolean)

從這個 Clock 建立新的 Timeline 並指定新的 Clock 是否是可控制的。Creates a new Clock from this Timeline and specifies whether the new Clock is controllable. 如果此 Timeline 具有子系,將會使用 Timeline 建立時鐘的樹狀結構作為根。If this Timeline has children, a tree of clocks is created with this Timeline as the root.

public:
 System::Windows::Media::Animation::Clock ^ CreateClock(bool hasControllableRoot);
public System.Windows.Media.Animation.Clock CreateClock (bool hasControllableRoot);
member this.CreateClock : bool -> System.Windows.Media.Animation.Clock
Public Function CreateClock (hasControllableRoot As Boolean) As Clock

參數

hasControllableRoot
Boolean Boolean Boolean Boolean

如果傳回的根 Clock 應從其 ClockController 屬性傳回 Controller,以便能以互動方式控制 Clock 樹狀目錄,則為 true,否則為 falsetrue if the root Clock returned should return a ClockController from its Controller property so that the Clock tree can be interactively controlled; otherwise, false.

傳回

從這個 Clock 建構的新 TimelineA new Clock constructed from this Timeline. 如果此 Timeline 是包含子時間表的 TimelineGroup,將會使用從此 Timeline 建立的可控制 Clock 來建立 Clock 物件的樹狀結構作為根。If this Timeline is a TimelineGroup that contains child timelines, a tree of Clock objects is created with a controllable Clock created from this Timeline as the root.

備註

雖然這Timeline可能是一或多個TimelineGroup物件的子系, 但會忽略這項資訊: 這個方法Timeline會將目前Timeline的視為根。Although this Timeline may be the child of one or more TimelineGroup objects, this information is ignored: this method treats the current Timeline as a root Timeline.

適用於