Прочетете на английски Редактиране

Споделяне чрез


RepeatBehavior Constructors

Definition

Initializes a new instance of the RepeatBehavior structure.

Overloads

RepeatBehavior(Double)

Initializes a new instance of the RepeatBehavior structure with the specified iteration count.

RepeatBehavior(TimeSpan)

Initializes a new instance of the RepeatBehavior structure with the specified repeat duration.

RepeatBehavior(Double)

Initializes a new instance of the RepeatBehavior structure with the specified iteration count.

C#
public RepeatBehavior(double count);

Parameters

count
Double

A number greater than or equal to 0 that specifies the number of iterations to make.

Exceptions

count evaluates to infinity, a value that is not a number, or is negative.

See also

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.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

RepeatBehavior(TimeSpan)

Initializes a new instance of the RepeatBehavior structure with the specified repeat duration.

C#
public RepeatBehavior(TimeSpan duration);

Parameters

duration
TimeSpan

The total length of time that the Timeline should play (its active duration).

Exceptions

duration evaluates to a negative number.

See also

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.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