IterationCount Struct

Summary

Determines the number of iterations of an animation. Also defines its repeat behavior.
Namespace
Avalonia.Animation
Interfaces
Base Types
  • object
  • ValueType
graph BT Type-->Base0["ValueType"] Base0-->Base1["object"] Type-.->Interface0["IEquatable<IterationCount>"] Type["IterationCount"] class Type type-node

Syntax

[TypeConverter(typeof(IterationCountTypeConverter))]
public struct IterationCount : ValueType, IEquatable<IterationCount>

Attributes

Type Description
TypeConverter

Constructors

Name Summary
IterationCount(ulong) Initializes a new instance of the IterationCount struct.
IterationCount(ulong, IterationType) Initializes a new instance of the IterationCount struct.

Properties

Name Value Summary
Infinite IterationCount
Gets an instance of IterationCount that indicates that an animation should repeat forever.
static
IsInfinite bool
Gets a value that indicates whether the IterationCount is set to loop.
RepeatType IterationType
Gets the unit of the IterationCount.
Value ulong
Gets the number of repeat iterations.

Methods

Name Value Summary
Equals(IterationCount) bool
Compares two IterationCount structures for equality.
Equals(object) bool
Determines whether the IterationCount is equal to the specified object.
GetHashCode() int
Gets a hash code for the IterationCount.
Parse(string) IterationCount
Parses a string to return a IterationCount.
static
ToString() string
Gets a string representation of the IterationCount.

Operators

Name Value Summary
operator !=(IterationCount, IterationCount) bool
operator ==(IterationCount, IterationCount) bool