Skip to main content

IterationCount Struct

Definition​

Assembly:Avalonia.Base
Package:Avalonia

Determines the number of iterations of an animation. Also defines its repeat behavior.

public struct IterationCount

Inheritance: ValueType -> IterationCount

Implements: IEquatable<IterationCount>

Constructors​

NameDescription
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​

NameDescription
Equals (2 overloads)Compares two IterationCount structures for equality.
GetHashCodeGets a hash code for the IterationCount.
ParseParses a string to return a Avalonia.Animation.IterationCount.
ToStringGets 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​

Avalonia.Animation.IterationCount

The Avalonia.Animation.IterationCount.

ToString Method​

Gets a string representation of the Avalonia.Animation.IterationCount.

public string ToString()

Returns​

string

The string representation.

Properties​

NameDescription
InfiniteGets an instance of Avalonia.Animation.IterationCount that indicates that an animation should repeat forever.
IsInfiniteGets a value that indicates whether the Avalonia.Animation.IterationCount is set to Infinite.
RepeatTypeGets the unit of the Avalonia.Animation.IterationCount.
ValueGets 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; }