Table of Contents

Struct IterationCount

Namespace
Avalonia.Animation
Assembly
Avalonia.Base.dll

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 ulong

The 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 ulong

The size of the IterationCount.

type IterationType

The 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

IterationCount

IsInfinite

Gets a value that indicates whether the IterationCount is set to Infinite.

public bool IsInfinite { get; }

Property Value

bool

RepeatType

Gets the unit of the IterationCount.

public IterationType RepeatType { get; }

Property Value

IterationType

Value

Gets the number of repeat iterations.

public ulong Value { get; }

Property Value

ulong

Methods

Equals(IterationCount)

Compares two IterationCount structures for equality.

public bool Equals(IterationCount IterationCount)

Parameters

IterationCount IterationCount

The 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 object

The 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 string

The string.

Returns

IterationCount

The IterationCount.

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 IterationCount

The first IterationCount.

b IterationCount

The 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 IterationCount

The first IterationCount.

rc2 IterationCount

The first IterationCount.

Returns

bool

True if the structures are unequal, otherwise false.