Table of Contents

Class AnimatorList

Namespace
Lime
Assembly
Lime.dll
public sealed class AnimatorList : IList<IAnimator>, ICollection<IAnimator>, IEnumerable<IAnimator>, IEnumerable, IDisposable
Inheritance
AnimatorList
Implements
Inherited Members
Extension Methods

Constructors

AnimatorList(IAnimatorHost)

public AnimatorList(IAnimatorHost owner)

Parameters

owner IAnimatorHost

Properties

Count

Gets the number of elements contained in the ICollection<T>.

public int Count { get; }

Property Value

int

The number of elements contained in the ICollection<T>.

this[int]

Gets or sets the element at the specified index.

public IAnimator this[int index] { get; set; }

Parameters

index int

The zero-based index of the element to get or set.

Property Value

IAnimator

The element at the specified index.

Exceptions

ArgumentOutOfRangeException

index is not a valid index in the IList<T>.

NotSupportedException

The property is set and the IList<T> is read-only.

this[string, string]

public IAnimator this[string propertyPath, string animationId = null] { get; }

Parameters

propertyPath string
animationId string

Property Value

IAnimator

Methods

Add(IAnimator)

Adds an item to the ICollection<T>.

public void Add(IAnimator item)

Parameters

item IAnimator

The object to add to the ICollection<T>.

Exceptions

NotSupportedException

The ICollection<T> is read-only.

AddRange(IEnumerable<IAnimator>)

public void AddRange(IEnumerable<IAnimator> collection)

Parameters

collection IEnumerable<IAnimator>

Apply(double, string)

public void Apply(double time, string animationId = null)

Parameters

time double
animationId string

Clear()

Removes all items from the ICollection<T>.

public void Clear()

Exceptions

NotSupportedException

The ICollection<T> is read-only.

Contains(IAnimator)

Determines whether the ICollection<T> contains a specific value.

public bool Contains(IAnimator item)

Parameters

item IAnimator

The object to locate in the ICollection<T>.

Returns

bool

true if item is found in the ICollection<T>; otherwise, false.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

GetEnumerator()

public List<IAnimator>.Enumerator GetEnumerator()

Returns

List<IAnimator>.Enumerator

GetOverallDuration(string)

public int GetOverallDuration(string animationId = null)

Parameters

animationId string

Returns

int

IndexOf(IAnimator)

Determines the index of a specific item in the IList<T>.

public int IndexOf(IAnimator item)

Parameters

item IAnimator

The object to locate in the IList<T>.

Returns

int

The index of item if found in the list; otherwise, -1.

Insert(int, IAnimator)

Inserts an item to the IList<T> at the specified index.

public void Insert(int index, IAnimator item)

Parameters

index int

The zero-based index at which item should be inserted.

item IAnimator

The object to insert into the IList<T>.

Exceptions

ArgumentOutOfRangeException

index is not a valid index in the IList<T>.

NotSupportedException

The IList<T> is read-only.

InvokeTriggers(int, string, double)

public void InvokeTriggers(int frame, string animationId = null, double animationTimeCorrection = 0)

Parameters

frame int
animationId string
animationTimeCorrection double

Remove(IAnimator)

Removes the first occurrence of a specific object from the ICollection<T>.

public bool Remove(IAnimator item)

Parameters

item IAnimator

The object to remove from the ICollection<T>.

Returns

bool

true if item was successfully removed from the ICollection<T>; otherwise, false. This method also returns false if item is not found in the original ICollection<T>.

Exceptions

NotSupportedException

The ICollection<T> is read-only.

Remove(string, string)

public bool Remove(string propertyName, string animationId = null)

Parameters

propertyName string
animationId string

Returns

bool

RemoveAt(int)

Removes the IList<T> item at the specified index.

public void RemoveAt(int index)

Parameters

index int

The zero-based index of the item to remove.

Exceptions

ArgumentOutOfRangeException

index is not a valid index in the IList<T>.

NotSupportedException

The IList<T> is read-only.

TryFind(string, out IAnimator, string)

public bool TryFind(string propertyPath, out IAnimator animator, string animationId = null)

Parameters

propertyPath string
animator IAnimator
animationId string

Returns

bool

TryFind<T>(string, out Animator<T>, string)

public bool TryFind<T>(string propertyPath, out Animator<T> animator, string animationId = null)

Parameters

propertyPath string
animator Animator<T>
animationId string

Returns

bool

Type Parameters

T