AnimationTimeline.AllocateClock AnimationTimeline.AllocateClock AnimationTimeline.AllocateClock AnimationTimeline.AllocateClock Method

定義

建立這個 ClockAnimationTimelineCreates a Clock for this AnimationTimeline.

protected public:
 override System::Windows::Media::Animation::Clock ^ AllocateClock();
protected internal override System.Windows.Media.Animation.Clock AllocateClock ();
override this.AllocateClock : unit -> System.Windows.Media.Animation.Clock
Protected Friend Overrides Function AllocateClock () As Clock

傳回

這個 AnimationTimeline 的時鐘。A clock for this AnimationTimeline.

備註

這個方法是由CreateClock方法呼叫, 而且不應該由您的程式碼直接呼叫。This method is called by the CreateClock method and should not be called directly by your code.

給繼承者的注意事項

當的AnimationTimeline實作者具有應該與類別搭配使用的對應自訂時鐘時, 應該覆寫這個方法。Implementers of AnimationTimeline should override this method when it has a corresponding custom clock that should be used with the class. 覆寫的方法應該會建立並傳回繼承自Clock之類別的新實例。The overridden method should create and return a new instance of class that inherits from Clock.

適用於