Table of Contents

Class SimpleKeyframeCollection<T>

Namespace
Lime
Assembly
Lime.dll
public class SimpleKeyframeCollection<T> : ICollection<SimpleKeyframe<T>>, IEnumerable<SimpleKeyframe<T>>, IKeyframeCollection, ICollection<IKeyframe>, IEnumerable<IKeyframe>, IKeyframeCollection<T>, ICollection<IKeyframe<T>>, IEnumerable<IKeyframe<T>>, ISimpleKeyframeCollection, ICollection<ISimpleKeyframe>, IEnumerable<ISimpleKeyframe>, IEnumerable

Type Parameters

T
Inheritance
SimpleKeyframeCollection<T>
Implements
Inherited Members

Constructors

SimpleKeyframeCollection()

public SimpleKeyframeCollection()

SimpleKeyframeCollection(int)

public SimpleKeyframeCollection(int capacity)

Parameters

capacity int

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>.

IsReadOnly

Gets a value indicating whether the ICollection<T> is read-only.

public bool IsReadOnly { get; }

Property Value

bool

true if the ICollection<T> is read-only; otherwise, false.

this[int]

public SimpleKeyframe<T> this[int index] { get; }

Parameters

index int

Property Value

SimpleKeyframe<T>

Methods

Add(IKeyframe)

Adds an item to the ICollection<T>.

public void Add(IKeyframe item)

Parameters

item IKeyframe

The object to add to the ICollection<T>.

Exceptions

NotSupportedException

The ICollection<T> is read-only.

Add(IKeyframe<T>)

Adds an item to the ICollection<T>.

public void Add(IKeyframe<T> item)

Parameters

item IKeyframe<T>

The object to add to the ICollection<T>.

Exceptions

NotSupportedException

The ICollection<T> is read-only.

Add(ISimpleKeyframe)

Adds an item to the ICollection<T>.

public void Add(ISimpleKeyframe item)

Parameters

item ISimpleKeyframe

The object to add to the ICollection<T>.

Exceptions

NotSupportedException

The ICollection<T> is read-only.

Add(SimpleKeyframe<T>)

Adds an item to the ICollection<T>.

public void Add(SimpleKeyframe<T> item)

Parameters

item SimpleKeyframe<T>

The object to add to the ICollection<T>.

Exceptions

NotSupportedException

The ICollection<T> is read-only.

Add(int, object)

public void Add(int frame, object value)

Parameters

frame int
value object

Add(int, object, SimpleKeyFunction)

public void Add(int frame, object value, SimpleKeyFunction function = SimpleKeyFunction.Linear)

Parameters

frame int
value object
function SimpleKeyFunction

Add(int, T)

public void Add(int frame, T value)

Parameters

frame int
value T

Add(int, T, SimpleKeyFunction)

public void Add(int frame, T value, SimpleKeyFunction function = SimpleKeyFunction.Linear)

Parameters

frame int
value T
function SimpleKeyFunction

AddRange(IEnumerable<IKeyframe<T>>)

public void AddRange(IEnumerable<IKeyframe<T>> keyframes)

Parameters

keyframes IEnumerable<IKeyframe<T>>

AddRange(IEnumerable<IKeyframe>)

public void AddRange(IEnumerable<IKeyframe> keyframes)

Parameters

keyframes IEnumerable<IKeyframe>

AddRange(IEnumerable<SimpleKeyframe<T>>)

public void AddRange(IEnumerable<SimpleKeyframe<T>> collection)

Parameters

collection IEnumerable<SimpleKeyframe<T>>

Clear()

Removes all items from the ICollection<T>.

public void Clear()

Exceptions

NotSupportedException

The ICollection<T> is read-only.

Contains(IKeyframe)

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

public bool Contains(IKeyframe item)

Parameters

item IKeyframe

The object to locate in the ICollection<T>.

Returns

bool

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

Contains(IKeyframe<T>)

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

public bool Contains(IKeyframe<T> item)

Parameters

item IKeyframe<T>

The object to locate in the ICollection<T>.

Returns

bool

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

Contains(ISimpleKeyframe)

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

public bool Contains(ISimpleKeyframe item)

Parameters

item ISimpleKeyframe

The object to locate in the ICollection<T>.

Returns

bool

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

Contains(SimpleKeyframe<T>)

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

public bool Contains(SimpleKeyframe<T> item)

Parameters

item SimpleKeyframe<T>

The object to locate in the ICollection<T>.

Returns

bool

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

Contains(int)

public bool Contains(int frame)

Parameters

frame int

Returns

bool

CopyTo(IKeyframe[], int)

Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

public void CopyTo(IKeyframe[] array, int arrayIndex)

Parameters

array IKeyframe[]

The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing.

arrayIndex int

The zero-based index in array at which copying begins.

Exceptions

ArgumentNullException

array is null.

ArgumentOutOfRangeException

arrayIndex is less than 0.

ArgumentException

The number of elements in the source ICollection<T> is greater than the available space from arrayIndex to the end of the destination array.

CopyTo(IKeyframe<T>[], int)

Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

public void CopyTo(IKeyframe<T>[] array, int arrayIndex)

Parameters

array IKeyframe<T>[]

The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing.

arrayIndex int

The zero-based index in array at which copying begins.

Exceptions

ArgumentNullException

array is null.

ArgumentOutOfRangeException

arrayIndex is less than 0.

ArgumentException

The number of elements in the source ICollection<T> is greater than the available space from arrayIndex to the end of the destination array.

CopyTo(ISimpleKeyframe[], int)

Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

public void CopyTo(ISimpleKeyframe[] array, int arrayIndex)

Parameters

array ISimpleKeyframe[]

The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing.

arrayIndex int

The zero-based index in array at which copying begins.

Exceptions

ArgumentNullException

array is null.

ArgumentOutOfRangeException

arrayIndex is less than 0.

ArgumentException

The number of elements in the source ICollection<T> is greater than the available space from arrayIndex to the end of the destination array.

CopyTo(SimpleKeyframe<T>[], int)

Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

public void CopyTo(SimpleKeyframe<T>[] array, int arrayIndex)

Parameters

array SimpleKeyframe<T>[]

The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing.

arrayIndex int

The zero-based index in array at which copying begins.

Exceptions

ArgumentNullException

array is null.

ArgumentOutOfRangeException

arrayIndex is less than 0.

ArgumentException

The number of elements in the source ICollection<T> is greater than the available space from arrayIndex to the end of the destination array.

CreateKeyframe()

public SimpleKeyframe<T> CreateKeyframe()

Returns

SimpleKeyframe<T>

FindIndex(Predicate<SimpleKeyframe<T>>)

public int FindIndex(Predicate<SimpleKeyframe<T>> match)

Parameters

match Predicate<SimpleKeyframe<T>>

Returns

int

FindLastIndex(Predicate<SimpleKeyframe<T>>)

public int FindLastIndex(Predicate<SimpleKeyframe<T>> match)

Parameters

match Predicate<SimpleKeyframe<T>>

Returns

int

GetByFrame(int)

public SimpleKeyframe<T> GetByFrame(int frame)

Parameters

frame int

Returns

SimpleKeyframe<T>

GetEnumerator()

public List<SimpleKeyframe<T>>.Enumerator GetEnumerator()

Returns

List<SimpleKeyframe<T>>.Enumerator

IndexOf(int)

public int IndexOf(int frame)

Parameters

frame int

Returns

int

Remove(IKeyframe)

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

public bool Remove(IKeyframe item)

Parameters

item IKeyframe

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(IKeyframe<T>)

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

public bool Remove(IKeyframe<T> item)

Parameters

item IKeyframe<T>

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(ISimpleKeyframe)

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

public bool Remove(ISimpleKeyframe item)

Parameters

item ISimpleKeyframe

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(SimpleKeyframe<T>)

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

public bool Remove(SimpleKeyframe<T> item)

Parameters

item SimpleKeyframe<T>

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(int)

public bool Remove(int frame)

Parameters

frame int

Returns

bool

RemoveAt(int)

public void RemoveAt(int index)

Parameters

index int

Update(int, IKeyframe<T>)

public void Update(int index, IKeyframe<T> keyframe)

Parameters

index int
keyframe IKeyframe<T>

Update(int, T, int)

public void Update(int index, T value, int packedParams)

Parameters

index int
value T
packedParams int