Timeline 建構函式

定義

初始化 Timeline 類別的新執行個體。

多載

Timeline()

初始化 Timeline 類別的新執行個體。

Timeline(Nullable<TimeSpan>)

使用指定的 Timeline 初始化 BeginTime 類別的新執行個體。

Timeline(Nullable<TimeSpan>, Duration)

使用指定的 TimelineBeginTime,初始化 Duration 類別的新執行個體。

Timeline(Nullable<TimeSpan>, Duration, RepeatBehavior)

使用指定的 TimelineBeginTimeDuration,初始化 RepeatBehavior 類別的新執行個體。

Timeline()

初始化 Timeline 類別的新執行個體。

protected:
 Timeline();
protected Timeline ();
Protected Sub New ()

適用於

Timeline(Nullable<TimeSpan>)

使用指定的 Timeline 初始化 BeginTime 類別的新執行個體。

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

參數

beginTime
Nullable<TimeSpan>

這個 Timeline 應該開始的時間。 如需詳細資訊,請參閱 BeginTime 屬性。

另請參閱

適用於

Timeline(Nullable<TimeSpan>, Duration)

使用指定的 TimelineBeginTime,初始化 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)

參數

beginTime
Nullable<TimeSpan>

這個 Timeline 應該開始的時間。 如需詳細資訊,請參閱 BeginTime 屬性。

duration
Duration

這個時刻表播放的時間長度,並不是計算重複次數。 如需詳細資訊,請參閱 Duration 屬性。

範例

BeginTime

Duration

適用於

Timeline(Nullable<TimeSpan>, Duration, RepeatBehavior)

使用指定的 TimelineBeginTimeDuration,初始化 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)

參數

beginTime
Nullable<TimeSpan>

這個 Timeline 應該開始的時間。 如需詳細資訊,請參閱 BeginTime 屬性。

duration
Duration

這個時刻表播放的時間長度,並不是計算重複次數。 如需詳細資訊,請參閱 Duration 屬性。

repeatBehavior
RepeatBehavior

這個時刻表的重複行為,可能為反覆 Count 或重複的 Duration。 如需詳細資訊,請參閱 RepeatBehavior 屬性。

範例

BeginTime

Duration

適用於