Struct IterationCount
Determines the number of iterations of an animation. Also defines its repeat behavior.
[TypeConverter(typeof(IterationCountTypeConverter))]
public struct IterationCount : IEquatable<IterationCount>
- Implements
- Inherited Members
Constructors
IterationCount(ulong)
Initializes a new instance of the IterationCount struct.
public IterationCount(ulong value)
Parameters
value
ulongThe number of iterations of an animation.
IterationCount(ulong, IterationType)
Initializes a new instance of the IterationCount struct.
public IterationCount(ulong value, IterationType type)
Parameters
value
ulongThe size of the IterationCount.
type
IterationTypeThe unit of the IterationCount.
Properties
Infinite
Gets an instance of IterationCount that indicates that an animation should repeat forever.
public static IterationCount Infinite { get; }
Property Value
IsInfinite
Gets a value that indicates whether the IterationCount is set to Infinite.
public bool IsInfinite { get; }
Property Value
RepeatType
Gets the unit of the IterationCount.
public IterationType RepeatType { get; }
Property Value
Value
Gets the number of repeat iterations.
public ulong Value { get; }
Property Value
Methods
Equals(IterationCount)
Compares two IterationCount structures for equality.
public bool Equals(IterationCount IterationCount)
Parameters
IterationCount
IterationCountThe structure with which to test equality.
Returns
- bool
True if the structures are equal, otherwise false.
Equals(object?)
Determines whether the IterationCount is equal to the specified object.
public override bool Equals(object? o)
Parameters
o
objectThe object with which to test equality.
Returns
- bool
True if the objects are equal, otherwise false.
GetHashCode()
Gets a hash code for the IterationCount.
public override int GetHashCode()
Returns
- int
The hash code.
Parse(string)
Parses a string to return a IterationCount.
public static IterationCount Parse(string s)
Parameters
s
stringThe string.
Returns
ToString()
Gets a string representation of the IterationCount.
public override string ToString()
Returns
- string
The string representation.
Operators
operator ==(IterationCount, IterationCount)
Compares two IterationCount structures for equality.
public static bool operator ==(IterationCount a, IterationCount b)
Parameters
a
IterationCountThe first IterationCount.
b
IterationCountThe second IterationCount.
Returns
- bool
True if the structures are equal, otherwise false.
operator !=(IterationCount, IterationCount)
Compares two IterationCount structures for inequality.
public static bool operator !=(IterationCount rc1, IterationCount rc2)
Parameters
rc1
IterationCountThe first IterationCount.
rc2
IterationCountThe first IterationCount.
Returns
- bool
True if the structures are unequal, otherwise false.