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
indexint
Property Value
Methods
Add(BezierKeyframe<T>)
Adds an item to the ICollection<T>.
public void Add(BezierKeyframe<T> item)
  Parameters
itemBezierKeyframe<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
itemIBezierKeyframeThe 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
itemIKeyframeThe 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
itemIKeyframe<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
frameintvalueT
AddRange(IEnumerable<IKeyframe<T>>)
public void AddRange(IEnumerable<IKeyframe<T>> keyframes)
  Parameters
keyframesIEnumerable<IKeyframe<T>>
AddRange(IEnumerable<IKeyframe>)
public void AddRange(IEnumerable<IKeyframe> keyframes)
  Parameters
keyframesIEnumerable<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
itemBezierKeyframe<T>The object to locate in the ICollection<T>.
Returns
- bool
 true if
itemis found in the ICollection<T>; otherwise, false.
Contains(IBezierKeyframe)
Determines whether the ICollection<T> contains a specific value.
public bool Contains(IBezierKeyframe item)
  Parameters
itemIBezierKeyframeThe object to locate in the ICollection<T>.
Returns
- bool
 true if
itemis found in the ICollection<T>; otherwise, false.
Contains(IKeyframe)
Determines whether the ICollection<T> contains a specific value.
public bool Contains(IKeyframe item)
  Parameters
itemIKeyframeThe object to locate in the ICollection<T>.
Returns
- bool
 true if
itemis 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
itemIKeyframe<T>The object to locate in the ICollection<T>.
Returns
- bool
 true if
itemis found in the ICollection<T>; otherwise, false.
Contains(int)
public bool Contains(int frame)
  Parameters
frameint
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
arrayBezierKeyframe<T>[]The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing.
indexint
Exceptions
- ArgumentNullException
 arrayis null.- ArgumentOutOfRangeException
 arrayIndexis less than 0.- ArgumentException
 The number of elements in the source ICollection<T> is greater than the available space from
arrayIndexto 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
arrayIBezierKeyframe[]The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing.
arrayIndexintThe zero-based index in
arrayat which copying begins.
Exceptions
- ArgumentNullException
 arrayis null.- ArgumentOutOfRangeException
 arrayIndexis less than 0.- ArgumentException
 The number of elements in the source ICollection<T> is greater than the available space from
arrayIndexto 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
arrayIKeyframe[]The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing.
arrayIndexintThe zero-based index in
arrayat which copying begins.
Exceptions
- ArgumentNullException
 arrayis null.- ArgumentOutOfRangeException
 arrayIndexis less than 0.- ArgumentException
 The number of elements in the source ICollection<T> is greater than the available space from
arrayIndexto 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
arrayIKeyframe<T>[]The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing.
arrayIndexintThe zero-based index in
arrayat which copying begins.
Exceptions
- ArgumentNullException
 arrayis null.- ArgumentOutOfRangeException
 arrayIndexis less than 0.- ArgumentException
 The number of elements in the source ICollection<T> is greater than the available space from
arrayIndexto the end of the destinationarray.
GetByFrame(int)
public BezierKeyframe<T> GetByFrame(int frame)
  Parameters
frameint
Returns
GetEnumerator()
public BezierKeyframeCollection<T>.Enumerator GetEnumerator()
  Returns
IndexOf(BezierKeyframe<T>)
public int IndexOf(BezierKeyframe<T> item)
  Parameters
itemBezierKeyframe<T>
Returns
IndexOf(int)
public int IndexOf(int frame)
  Parameters
frameint
Returns
Remove(BezierKeyframe<T>)
Removes the first occurrence of a specific object from the ICollection<T>.
public bool Remove(BezierKeyframe<T> item)
  Parameters
itemBezierKeyframe<T>The object to remove from the ICollection<T>.
Returns
- bool
 true if
itemwas successfully removed from the ICollection<T>; otherwise, false. This method also returns false ifitemis 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
itemIBezierKeyframeThe object to remove from the ICollection<T>.
Returns
- bool
 true if
itemwas successfully removed from the ICollection<T>; otherwise, false. This method also returns false ifitemis 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
itemIKeyframeThe object to remove from the ICollection<T>.
Returns
- bool
 true if
itemwas successfully removed from the ICollection<T>; otherwise, false. This method also returns false ifitemis 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
itemIKeyframe<T>The object to remove from the ICollection<T>.
Returns
- bool
 true if
itemwas successfully removed from the ICollection<T>; otherwise, false. This method also returns false ifitemis not found in the original ICollection<T>.
Exceptions
- NotSupportedException
 The ICollection<T> is read-only.
Remove(int)
public bool Remove(int frame)
  Parameters
frameint
Returns
RemoveAt(int)
public void RemoveAt(int index)
  Parameters
indexint
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
indexintvalueTinSlopeToutSlopeTinWeightToutWeightT