RepeatBehavior Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes how a Timeline repeats its simple duration.
public value class RepeatBehavior : IFormattable
[System.ComponentModel.TypeConverter(typeof(System.Windows.Media.Animation.RepeatBehaviorConverter))]
public struct RepeatBehavior : IFormattable
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Media.Animation.RepeatBehaviorConverter))>]
type RepeatBehavior = struct
interface IFormattable
Public Structure RepeatBehavior
Implements IFormattable
- Inheritance
- Attributes
- Implements
There are three types of RepeatBehavior behaviors:
Iteration Count - specifies the number of times the simple duration of a Timeline plays. The default iteration count is 1.0, and means the Timeline is active for exactly one of its simple durations. A count of 0.5 specifies that the timeline is active for half of its simple duration, while a count of 2 specifies that the timeline repeats its simple duration twice. For more information, see the Count property.
Duration - specifies the length of the Timeline object's active duration. For example, a Timeline with a simple Duration value of 1 second and a RepeatBehavior.Duration value of 2.5 seconds will run for 2.5 iterations.
Forever - the Timeline repeats indefinitely.
<object property="iterationCountx"/>
-or-
<object property="[days.]hours:minutes:seconds[.fractionalSeconds]"/>
-or-
<object property="[days.]hours:minutes"/>
-or-
<object property="days"/>
-or-
<object property="Forever"/>
-
Items in square brackets ([
and ]
) are optional.
iterationCount
System.Double
A value greater than or equal to 0 that specifies the number of times a timeline should play. For more information, see the Count property.
days
System.Int32
A value greater than or equal to 0 that specifies the number of days for a Timeline object's active duration. For more information, see the Duration property.
hours
System.Int32
A value between 0 and 23 that specifies the number of hours for a Timeline object's active duration. For more information, see the Duration property.
minutes
System.Int32
A value between 0 and 59 that specifies the number of minutes for a Timeline object's active duration. For more information, see the Duration property.
seconds
System.Double
A value between 0 and 59 that specifies the number of seconds for a Timeline object's active duration. For more information, see the Duration property.
fractionalSeconds
System.Int32
A value consisting of 1 to 7 digits that represents fractional seconds.
Repeat |
Initializes a new instance of the RepeatBehavior structure with the specified iteration count. |
Repeat |
Initializes a new instance of the RepeatBehavior structure with the specified repeat duration. |
Count |
Gets the number of times a Timeline should repeat. |
Duration |
Gets the total length of time a Timeline should play. |
Forever |
Gets a RepeatBehavior that specifies an infinite number of repetitions. |
Has |
Gets a value that indicates whether the repeat behavior has a specified iteration count. |
Has |
Gets a value that indicates whether the repeat behavior has a specified repeat duration. |
Equals(Object) |
Indicates whether this instance is equal to the specified object. |
Equals(Repeat |
Indicates whether the two specified RepeatBehavior structures are equal. |
Equals(Repeat |
Returns a value that indicates whether this instance is equal to the specified RepeatBehavior. |
Get |
Returns the hash code of this instance. |
To |
Returns a string representation of this RepeatBehavior instance. |
To |
Returns a string representation of this RepeatBehavior instance with the specified format. |
Equality(Repeat |
Indicates whether the two specified RepeatBehavior instances are equal. |
Inequality(Repeat |
Indicates whether the two RepeatBehavior instances are not equal. |
IFormattable. |
Formats the value of the current instance using the specified format. |
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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: