Struct RepeatBehavior
Implements repeat behavior for animations
Inherited Members
Namespace: EmptyKeys.UserInterface.Media.Animation
Assembly: EmptyKeys.UserInterface.dll
Syntax
public struct RepeatBehavior
Constructors
RepeatBehavior(Single)
Initializes a new instance of the RepeatBehavior struct.
Declaration
public RepeatBehavior(float count)
Parameters
Type | Name | Description |
---|---|---|
System.Single | count | The count. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | count |
RepeatBehavior(TimeSpan)
Initializes a new instance of the RepeatBehavior struct.
Declaration
public RepeatBehavior(TimeSpan duration)
Parameters
Type | Name | Description |
---|---|---|
System.TimeSpan | duration | The duration. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | duration |
Properties
Count
Gets the count.
Declaration
public float Count { get; }
Property Value
Type | Description |
---|---|
System.Single | The count. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Repeat Behavior is not iteration count type |
Duration
Gets the duration.
Declaration
public TimeSpan Duration { get; }
Property Value
Type | Description |
---|---|
System.TimeSpan | The duration. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Repeat Behavior is not repeat duration type |
Forever
Gets the forever repeat behavior.
Declaration
public static RepeatBehavior Forever { get; }
Property Value
Type | Description |
---|---|
RepeatBehavior | The forever repeat behavior. |
HasCount
Gets a value indicating whether this instance has count.
Declaration
public bool HasCount { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
HasDuration
Gets a value indicating whether this instance has duration.
Declaration
public bool HasDuration { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
Equals(RepeatBehavior)
Tests if this instance equals the specified repeat behavior.
Declaration
public bool Equals(RepeatBehavior repeatBehavior)
Parameters
Type | Name | Description |
---|---|---|
RepeatBehavior | repeatBehavior | The repeat behavior. |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(RepeatBehavior, RepeatBehavior)
Tests is the specified repeat behavior 1 equals repeat behavior 2
Declaration
public static bool Equals(RepeatBehavior repeatBehavior1, RepeatBehavior repeatBehavior2)
Parameters
Type | Name | Description |
---|---|---|
RepeatBehavior | repeatBehavior1 | The repeat behavior1. |
RepeatBehavior | repeatBehavior2 | The repeat behavior2. |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Tests if this instance equals the specified value.
Declaration
public override bool Equals(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |
Overrides
ToString(IFormatProvider)
Returns a System.String that represents this instance.
Declaration
public string ToString(IFormatProvider formatProvider)
Parameters
Type | Name | Description |
---|---|---|
System.IFormatProvider | formatProvider | The format provider. |
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |
Operators
Equality(RepeatBehavior, RepeatBehavior)
Implements the operator ==.
Declaration
public static bool operator ==(RepeatBehavior repeatBehavior1, RepeatBehavior repeatBehavior2)
Parameters
Type | Name | Description |
---|---|---|
RepeatBehavior | repeatBehavior1 | The repeat behavior1. |
RepeatBehavior | repeatBehavior2 | The repeat behavior2. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |
Inequality(RepeatBehavior, RepeatBehavior)
Implements the operator !=.
Declaration
public static bool operator !=(RepeatBehavior repeatBehavior1, RepeatBehavior repeatBehavior2)
Parameters
Type | Name | Description |
---|---|---|
RepeatBehavior | repeatBehavior1 | The repeat behavior1. |
RepeatBehavior | repeatBehavior2 | The repeat behavior2. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |