Timeline 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 Timeline 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| Timeline() |
初始化 Timeline 類別的新執行個體。 |
| Timeline(Nullable<TimeSpan>) | |
| Timeline(Nullable<TimeSpan>, Duration) | |
| Timeline(Nullable<TimeSpan>, Duration, RepeatBehavior) |
初始化該類別的新實例 Timeline ,包含指定的 BeginTime、 Duration、 RepeatBehavior和 。 |
Timeline()
Timeline(Nullable<TimeSpan>)
protected:
Timeline(Nullable<TimeSpan> beginTime);
protected Timeline(TimeSpan? beginTime);
new System.Windows.Media.Animation.Timeline : Nullable<TimeSpan> -> System.Windows.Media.Animation.Timeline
Protected Sub New (beginTime As Nullable(Of TimeSpan))
參數
另請參閱
適用於
Timeline(Nullable<TimeSpan>, Duration)
protected:
Timeline(Nullable<TimeSpan> beginTime, System::Windows::Duration duration);
protected Timeline(TimeSpan? beginTime, System.Windows.Duration duration);
new System.Windows.Media.Animation.Timeline : Nullable<TimeSpan> * System.Windows.Duration -> System.Windows.Media.Animation.Timeline
Protected Sub New (beginTime As Nullable(Of TimeSpan), duration As Duration)
參數
範例
適用於
Timeline(Nullable<TimeSpan>, Duration, RepeatBehavior)
初始化該類別的新實例 Timeline ,包含指定的 BeginTime、 Duration、 RepeatBehavior和 。
protected:
Timeline(Nullable<TimeSpan> beginTime, System::Windows::Duration duration, System::Windows::Media::Animation::RepeatBehavior repeatBehavior);
protected Timeline(TimeSpan? beginTime, System.Windows.Duration duration, System.Windows.Media.Animation.RepeatBehavior repeatBehavior);
new System.Windows.Media.Animation.Timeline : Nullable<TimeSpan> * System.Windows.Duration * System.Windows.Media.Animation.RepeatBehavior -> System.Windows.Media.Animation.Timeline
Protected Sub New (beginTime As Nullable(Of TimeSpan), duration As Duration, repeatBehavior As RepeatBehavior)
參數
- repeatBehavior
- RepeatBehavior
這條時間線的重複行為,不論是迭代 Count 還是重複 Duration。 詳情請參閱該 RepeatBehavior 物業。