Class BezierKeyframeCollection<T>
- Namespace
- Lime
- Assembly
- Lime.dll
public class BezierKeyframeCollection<T> : ICollection<BezierKeyframe<T>>, IEnumerable<BezierKeyframe<T>>, IKeyframeCollection, ICollection<IKeyframe>, IEnumerable<IKeyframe>, IKeyframeCollection<T>, ICollection<IKeyframe<T>>, IEnumerable<IKeyframe<T>>, IBezierKeyframeCollection, ICollection<IBezierKeyframe>, IEnumerable<IBezierKeyframe>, IEnumerable
Type Parameters
T
- Inheritance
-
BezierKeyframeCollection<T>
- Implements
-
ICollection<IKeyframe<T>>IEnumerable<IKeyframe<T>>
- Inherited Members
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 BezierKeyframe<T> this[int index] { get; }
Parameters
index
int
Property Value
Methods
Add(BezierKeyframe<T>)
Adds an item to the ICollection<T>.
public void Add(BezierKeyframe<T> item)
Parameters
item
BezierKeyframe<T>The object to add to the ICollection<T>.
Exceptions
- NotSupportedException
The ICollection<T> is read-only.
Add(IBezierKeyframe)
Adds an item to the ICollection<T>.
public void Add(IBezierKeyframe item)
Parameters
item
IBezierKeyframeThe object to add to the ICollection<T>.
Exceptions
- NotSupportedException
The ICollection<T> is read-only.
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(int, object)
public void Add(int frame, object value)
Parameters
Add(int, T)
public void Add(int frame, T value)
Parameters
frame
intvalue
T
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>
Clear()
Removes all items from the ICollection<T>.
public void Clear()
Exceptions
- NotSupportedException
The ICollection<T> is read-only.
Contains(BezierKeyframe<T>)
Determines whether the ICollection<T> contains a specific value.
public bool Contains(BezierKeyframe<T> item)
Parameters
item
BezierKeyframe<T>The object to locate in the ICollection<T>.
Returns
- bool
true if
item
is found in the ICollection<T>; otherwise, false.
Contains(IBezierKeyframe)
Determines whether the ICollection<T> contains a specific value.
public bool Contains(IBezierKeyframe item)
Parameters
item
IBezierKeyframeThe object to locate in the ICollection<T>.
Returns
- bool
true if
item
is found in the ICollection<T>; otherwise, false.
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(int)
public bool Contains(int frame)
Parameters
frame
int
Returns
CopyTo(BezierKeyframe<T>[], int)
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
public void CopyTo(BezierKeyframe<T>[] array, int index)
Parameters
array
BezierKeyframe<T>[]The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing.
index
int
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(IBezierKeyframe[], int)
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
public void CopyTo(IBezierKeyframe[] array, int arrayIndex)
Parameters
array
IBezierKeyframe[]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[], 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
.
GetByFrame(int)
public BezierKeyframe<T> GetByFrame(int frame)
Parameters
frame
int
Returns
GetEnumerator()
public BezierKeyframeCollection<T>.Enumerator GetEnumerator()
Returns
IndexOf(BezierKeyframe<T>)
public int IndexOf(BezierKeyframe<T> item)
Parameters
item
BezierKeyframe<T>
Returns
IndexOf(int)
public int IndexOf(int frame)
Parameters
frame
int
Returns
Remove(BezierKeyframe<T>)
Removes the first occurrence of a specific object from the ICollection<T>.
public bool Remove(BezierKeyframe<T> item)
Parameters
item
BezierKeyframe<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(IBezierKeyframe)
Removes the first occurrence of a specific object from the ICollection<T>.
public bool Remove(IBezierKeyframe item)
Parameters
item
IBezierKeyframeThe 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)
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(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, object, object, object, object, object)
public void Update(int index, object value, object inSlope, object outSlope, object inWeight, object outWeight)
Parameters
Update(int, T, T, T, T, T)
public void Update(int index, T value, T inSlope, T outSlope, T inWeight, T outWeight)
Parameters
index
intvalue
TinSlope
ToutSlope
TinWeight
ToutWeight
T