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
-
ICollection<IKeyframe<T>>IEnumerable<IKeyframe<T>>
- 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
Methods
Add(IKeyframe)
Adds an item to the ICollection<T>.
public void Add(IKeyframe item)
Parameters
item
IKeyframeThe 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
ISimpleKeyframeThe 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
Add(int, object, SimpleKeyFunction)
public void Add(int frame, object value, SimpleKeyFunction function = SimpleKeyFunction.Linear)
Parameters
frame
intvalue
objectfunction
SimpleKeyFunction
Add(int, T)
public void Add(int frame, T value)
Parameters
frame
intvalue
T
Add(int, T, SimpleKeyFunction)
public void Add(int frame, T value, SimpleKeyFunction function = SimpleKeyFunction.Linear)
Parameters
frame
intvalue
Tfunction
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
IKeyframeThe 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
ISimpleKeyframeThe 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
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
intThe 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 destinationarray
.
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
intThe 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 destinationarray
.
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
intThe 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 destinationarray
.
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
intThe 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 destinationarray
.
CreateKeyframe()
public SimpleKeyframe<T> CreateKeyframe()
Returns
FindIndex(Predicate<SimpleKeyframe<T>>)
public int FindIndex(Predicate<SimpleKeyframe<T>> match)
Parameters
match
Predicate<SimpleKeyframe<T>>
Returns
FindLastIndex(Predicate<SimpleKeyframe<T>>)
public int FindLastIndex(Predicate<SimpleKeyframe<T>> match)
Parameters
match
Predicate<SimpleKeyframe<T>>
Returns
GetByFrame(int)
public SimpleKeyframe<T> GetByFrame(int frame)
Parameters
frame
int
Returns
GetEnumerator()
public List<SimpleKeyframe<T>>.Enumerator GetEnumerator()
Returns
IndexOf(int)
public int IndexOf(int frame)
Parameters
frame
int
Returns
Remove(IKeyframe)
Removes the first occurrence of a specific object from the ICollection<T>.
public bool Remove(IKeyframe item)
Parameters
item
IKeyframeThe 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 ifitem
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 ifitem
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
ISimpleKeyframeThe 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 ifitem
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 ifitem
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
RemoveAt(int)
public void RemoveAt(int index)
Parameters
index
int
Update(int, IKeyframe<T>)
public void Update(int index, IKeyframe<T> keyframe)
Parameters
Update(int, T, int)
public void Update(int index, T value, int packedParams)