TimelineCollection Constructors

Definition

Initializes a new instance of the TimelineCollection class.

Overloads

TimelineCollection()

Initializes a new instance of the TimelineCollection class.

TimelineCollection(IEnumerable<Timeline>)

Initializes a new instance of the TimelineCollection class that includes all of the same elements as an existing collection.

TimelineCollection(Int32)

Initializes a new instance of TimelineCollection with the specified initial capacity.

TimelineCollection()

Initializes a new instance of the TimelineCollection class.

C#
public TimelineCollection();

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

TimelineCollection(IEnumerable<Timeline>)

Initializes a new instance of the TimelineCollection class that includes all of the same elements as an existing collection.

C#
public TimelineCollection(System.Collections.Generic.IEnumerable<System.Windows.Media.Animation.Timeline> collection);

Parameters

collection
IEnumerable<Timeline>

Collection of elements this instance is based on.

Exceptions

Occurs when collection is empty.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

TimelineCollection(Int32)

Initializes a new instance of TimelineCollection with the specified initial capacity.

C#
public TimelineCollection(int capacity);

Parameters

capacity
Int32

The initial capacity of the TimelineCollection.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10