Clock(Timeline) 建構函式

定義

使用指定的 Clock 做為範本,初始化 Timeline 類別的新執行個體。Initializes a new instance of the Clock class, using the specified Timeline as a template. 新的 Clock 物件沒有子系。The new Clock object has no children.

protected public:
 Clock(System::Windows::Media::Animation::Timeline ^ timeline);
protected internal Clock (System.Windows.Media.Animation.Timeline timeline);
new System.Windows.Media.Animation.Clock : System.Windows.Media.Animation.Timeline -> System.Windows.Media.Animation.Clock

參數

timeline
Timeline

應在其中建構這個時鐘的 TimelineThe Timeline from which this clock should be constructed. 如果時鐘已經存在,就不會為任何子 Timeline 物件建立時鐘。Clocks are not created for any child Timeline objects, if they exist.

適用於