IterationCount Struct
Definition
Determines the number of iterations of an animation. Also defines its repeat behavior.
public struct IterationCount
Constructors
| Name | Description |
|---|---|
| IterationCount (2 overloads) | Initializes a new instance of the Avalonia.Animation.IterationCount struct. |
IterationCount overloads
IterationCount Constructor
Initializes a new instance of the Avalonia.Animation.IterationCount struct.
public IterationCount(ulong value)
Parameters
value ulong
The number of iterations of an animation.
IterationCount Constructor
Initializes a new instance of the Avalonia.Animation.IterationCount struct.
public IterationCount(ulong value, Avalonia.Animation.IterationType type)
Parameters
value ulong
The size of the IterationCount.
type Avalonia.Animation.IterationType
The unit of the IterationCount.
Methods
| Name | Description |
|---|---|
| Equals (2 overloads) | Compares two IterationCount structures for equality. |
| GetHashCode | Gets a hash code for the IterationCount. |
| Parse | Parses a string to return a Avalonia.Animation.IterationCount. |
| ToString | Gets a string representation of the Avalonia.Animation.IterationCount. |
Equals overloads
Equals Method
Compares two IterationCount structures for equality.
public bool Equals(Avalonia.Animation.IterationCount IterationCount)
Parameters
IterationCount Avalonia.Animation.IterationCount
The structure with which to test equality.
Returns
bool
True if the structures are equal, otherwise false.
Equals Method
Determines whether the Avalonia.Animation.IterationCount is equal to the specified object.
public bool Equals(object o)
Parameters
o object
The object with which to test equality.
Returns
bool
True if the objects are equal, otherwise false.
GetHashCode Method
Gets a hash code for the IterationCount.
public int GetHashCode()
Returns
int
The hash code.
Parse Method
Parses a string to return a Avalonia.Animation.IterationCount.
public Avalonia.Animation.IterationCount Parse(string s)
Parameters
s string
The string.
Returns
ToString Method
Gets a string representation of the Avalonia.Animation.IterationCount.
public string ToString()
Returns
string
The string representation.
Properties
| Name | Description |
|---|---|
| Infinite | Gets an instance of Avalonia.Animation.IterationCount that indicates that an animation should repeat forever. |
| IsInfinite | Gets a value that indicates whether the Avalonia.Animation.IterationCount is set to Infinite. |
| RepeatType | Gets the unit of the Avalonia.Animation.IterationCount. |
| Value | Gets the number of repeat iterations. |
Infinite Property
Gets an instance of Avalonia.Animation.IterationCount that indicates that an animation should repeat forever.
public Avalonia.Animation.IterationCount Infinite { get; set; }
IsInfinite Property
Gets a value that indicates whether the Avalonia.Animation.IterationCount is set to Infinite.
public bool IsInfinite { get; set; }
RepeatType Property
Gets the unit of the Avalonia.Animation.IterationCount.
public Avalonia.Animation.IterationType RepeatType { get; set; }
Value Property
Gets the number of repeat iterations.
public ulong Value { get; set; }