Szerkesztés

Megosztás a következőn keresztül:


MediaTimeline Constructors

Definition

Initializes a new instance of the MediaTimeline class.

Overloads

MediaTimeline()

Initializes a new instance of the MediaTimeline class.

MediaTimeline(Nullable<TimeSpan>)

Initializes a new instance of the MediaTimeline that begins at the specified time.

MediaTimeline(Uri)

Initializes a new instance of the MediaTimeline class using the supplied Uri as the media source.

MediaTimeline(Nullable<TimeSpan>, Duration)

Initializes a new instance of the MediaTimeline that begins at the specified time and lasts for the specified duration.

MediaTimeline(Nullable<TimeSpan>, Duration, RepeatBehavior)

Initializes a new instance of the MediaTimeline class that begins at the specified time over the specified time and has the specified repeat behavior.

MediaTimeline()

Initializes a new instance of the MediaTimeline class.

public:
 MediaTimeline();
public MediaTimeline ();
Public Sub New ()

Applies to

MediaTimeline(Nullable<TimeSpan>)

Initializes a new instance of the MediaTimeline that begins at the specified time.

public:
 MediaTimeline(Nullable<TimeSpan> beginTime);
public MediaTimeline (TimeSpan? beginTime);
new System.Windows.Media.MediaTimeline : Nullable<TimeSpan> -> System.Windows.Media.MediaTimeline
Public Sub New (beginTime As Nullable(Of TimeSpan))

Parameters

beginTime
Nullable<TimeSpan>

The time to begin the timeline.

Applies to

MediaTimeline(Uri)

Initializes a new instance of the MediaTimeline class using the supplied Uri as the media source.

public:
 MediaTimeline(Uri ^ source);
public MediaTimeline (Uri source);
new System.Windows.Media.MediaTimeline : Uri -> System.Windows.Media.MediaTimeline
Public Sub New (source As Uri)

Parameters

source
Uri

The media source for the timeline.

Applies to

MediaTimeline(Nullable<TimeSpan>, Duration)

Initializes a new instance of the MediaTimeline that begins at the specified time and lasts for the specified duration.

public:
 MediaTimeline(Nullable<TimeSpan> beginTime, System::Windows::Duration duration);
public MediaTimeline (TimeSpan? beginTime, System.Windows.Duration duration);
new System.Windows.Media.MediaTimeline : Nullable<TimeSpan> * System.Windows.Duration -> System.Windows.Media.MediaTimeline
Public Sub New (beginTime As Nullable(Of TimeSpan), duration As Duration)

Parameters

beginTime
Nullable<TimeSpan>

The time to begin media playback.

duration
Duration

The length of time for media playback.

Applies to

MediaTimeline(Nullable<TimeSpan>, Duration, RepeatBehavior)

Initializes a new instance of the MediaTimeline class that begins at the specified time over the specified time and has the specified repeat behavior.

public:
 MediaTimeline(Nullable<TimeSpan> beginTime, System::Windows::Duration duration, System::Windows::Media::Animation::RepeatBehavior repeatBehavior);
public MediaTimeline (TimeSpan? beginTime, System.Windows.Duration duration, System.Windows.Media.Animation.RepeatBehavior repeatBehavior);
new System.Windows.Media.MediaTimeline : Nullable<TimeSpan> * System.Windows.Duration * System.Windows.Media.Animation.RepeatBehavior -> System.Windows.Media.MediaTimeline
Public Sub New (beginTime As Nullable(Of TimeSpan), duration As Duration, repeatBehavior As RepeatBehavior)

Parameters

beginTime
Nullable<TimeSpan>

The time to begin media playback.

duration
Duration

The length of time for media playback.

repeatBehavior
RepeatBehavior

The repeat behavior to use when the playback duration has been reached.

Applies to