Click or drag to resize
DigitalRuneKeyFrameCollection<T> Class
Manages a collection of key frames.
Inheritance Hierarchy
System.Object
  System.Collections.ObjectModel.Collection<IKeyFrame<T>>
    DigitalRune.Animation.KeyFrameCollection<T>

Namespace: DigitalRune.Animation
Assembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax
public class KeyFrameCollection<T> : Collection<IKeyFrame<T>>

Type Parameters

T
The type of the animation value.

The KeyFrameCollection< T> type exposes the following members.

Constructors
  NameDescription
Public methodKeyFrameCollection<T>
Initializes a new instance of the KeyFrameCollection< T> class
Top
Methods
  NameDescription
Public methodAdd (Inherited from Collection<IKeyFrame<T>>.)
Public methodClear (Inherited from Collection<IKeyFrame<T>>.)
Protected methodClearItems (Inherited from Collection<IKeyFrame<T>>.)
Public methodContains (Inherited from Collection<IKeyFrame<T>>.)
Public methodCopyTo (Inherited from Collection<IKeyFrame<T>>.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the KeyFrameCollection<T>.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf (Inherited from Collection<IKeyFrame<T>>.)
Public methodInsert (Inherited from Collection<IKeyFrame<T>>.)
Protected methodInsertItem (Inherited from Collection<IKeyFrame<T>>.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove (Inherited from Collection<IKeyFrame<T>>.)
Public methodRemoveAt (Inherited from Collection<IKeyFrame<T>>.)
Protected methodRemoveItem (Inherited from Collection<IKeyFrame<T>>.)
Protected methodSetItem
Replaces the element at the specified index.
(Inherited from Collection<IKeyFrame<T>>.)
Public methodSort
Sorts the key frames in the collection by their time value.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyCount (Inherited from Collection<IKeyFrame<T>>.)
Public propertyItem
Gets or sets the element at the specified index.
(Inherited from Collection<IKeyFrame<T>>.)
Protected propertyItems (Inherited from Collection<IKeyFrame<T>>.)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIList.Add
Adds an item to the IList.
(Inherited from Collection<IKeyFrame<T>>.)
Explicit interface implementationPrivate methodIList.Contains
Determines whether the IList contains a specific value.
(Inherited from Collection<IKeyFrame<T>>.)
Explicit interface implementationPrivate methodICollection.CopyTo
Copies the elements of the ICollection to an Array, starting at a particular Array index.
(Inherited from Collection<IKeyFrame<T>>.)
Explicit interface implementationPrivate methodIEnumerable.GetEnumerator
Returns an enumerator that iterates through a collection.
(Inherited from Collection<IKeyFrame<T>>.)
Explicit interface implementationPrivate methodIList.IndexOf
Determines the index of a specific item in the IList.
(Inherited from Collection<IKeyFrame<T>>.)
Explicit interface implementationPrivate methodIList.Insert
Inserts an item into the IList at the specified index.
(Inherited from Collection<IKeyFrame<T>>.)
Explicit interface implementationPrivate propertyIList.IsFixedSize
Gets a value indicating whether the IList has a fixed size.
(Inherited from Collection<IKeyFrame<T>>.)
Explicit interface implementationPrivate propertyICollection<T>.IsReadOnly (Inherited from Collection<IKeyFrame<T>>.)
Explicit interface implementationPrivate propertyIList.IsReadOnly
Gets a value indicating whether the IList is read-only.
(Inherited from Collection<IKeyFrame<T>>.)
Explicit interface implementationPrivate propertyICollection.IsSynchronized
Gets a value indicating whether access to the ICollection is synchronized (thread safe).
(Inherited from Collection<IKeyFrame<T>>.)
Explicit interface implementationPrivate propertyIList.Item
Gets or sets the element at the specified index.
(Inherited from Collection<IKeyFrame<T>>.)
Explicit interface implementationPrivate methodIList.Remove
Removes the first occurrence of a specific object from the IList.
(Inherited from Collection<IKeyFrame<T>>.)
Explicit interface implementationPrivate propertyICollection.SyncRoot
Gets an object that can be used to synchronize access to the ICollection.
(Inherited from Collection<IKeyFrame<T>>.)
Top
Remarks
Important: The KeyFrameAnimation< T> expects that the key frames are sorted by their time. But the KeyFrameCollection< T> does not automatically order the key frames. The method Sort() needs to be called if key frames are added in the wrong order!
See Also