Click or drag to resize
DigitalRuneKeyFrameCollectionT Class
Manages a collection of key frames.
Inheritance Hierarchy
SystemObject
  System.Collections.ObjectModelCollectionIKeyFrameT
    DigitalRune.AnimationKeyFrameCollectionT

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 KeyFrameCollectionT type exposes the following members.

Constructors
  NameDescription
Public methodKeyFrameCollectionT
Initializes a new instance of the KeyFrameCollectionT class
Top
Methods
  NameDescription
Public methodAdd (Inherited from CollectionIKeyFrameT.)
Public methodClear (Inherited from CollectionIKeyFrameT.)
Protected methodClearItems (Inherited from CollectionIKeyFrameT.)
Public methodContains (Inherited from CollectionIKeyFrameT.)
Public methodCopyTo (Inherited from CollectionIKeyFrameT.)
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 KeyFrameCollectionT.
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 CollectionIKeyFrameT.)
Public methodInsert (Inherited from CollectionIKeyFrameT.)
Protected methodInsertItem (Inherited from CollectionIKeyFrameT.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove (Inherited from CollectionIKeyFrameT.)
Public methodRemoveAt (Inherited from CollectionIKeyFrameT.)
Protected methodRemoveItem (Inherited from CollectionIKeyFrameT.)
Protected methodSetItem
Replaces the element at the specified index.
(Inherited from CollectionIKeyFrameT.)
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 CollectionIKeyFrameT.)
Public propertyItem
Gets or sets the element at the specified index.
(Inherited from CollectionIKeyFrameT.)
Protected propertyItems (Inherited from CollectionIKeyFrameT.)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIListAdd
Adds an item to the IList.
(Inherited from CollectionIKeyFrameT.)
Explicit interface implementationPrivate methodIListContains
Determines whether the IList contains a specific value.
(Inherited from CollectionIKeyFrameT.)
Explicit interface implementationPrivate methodICollectionCopyTo
Copies the elements of the ICollection to an Array, starting at a particular Array index.
(Inherited from CollectionIKeyFrameT.)
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through a collection.
(Inherited from CollectionIKeyFrameT.)
Explicit interface implementationPrivate methodIListIndexOf
Determines the index of a specific item in the IList.
(Inherited from CollectionIKeyFrameT.)
Explicit interface implementationPrivate methodIListInsert
Inserts an item into the IList at the specified index.
(Inherited from CollectionIKeyFrameT.)
Explicit interface implementationPrivate propertyIListIsFixedSize
Gets a value indicating whether the IList has a fixed size.
(Inherited from CollectionIKeyFrameT.)
Explicit interface implementationPrivate propertyICollectionTIsReadOnly (Inherited from CollectionIKeyFrameT.)
Explicit interface implementationPrivate propertyIListIsReadOnly
Gets a value indicating whether the IList is read-only.
(Inherited from CollectionIKeyFrameT.)
Explicit interface implementationPrivate propertyICollectionIsSynchronized
Gets a value indicating whether access to the ICollection is synchronized (thread safe).
(Inherited from CollectionIKeyFrameT.)
Explicit interface implementationPrivate propertyIListItem
Gets or sets the element at the specified index.
(Inherited from CollectionIKeyFrameT.)
Explicit interface implementationPrivate methodIListRemove
Removes the first occurrence of a specific object from the IList.
(Inherited from CollectionIKeyFrameT.)
Explicit interface implementationPrivate propertyICollectionSyncRoot
Gets an object that can be used to synchronize access to the ICollection.
(Inherited from CollectionIKeyFrameT.)
Top
Remarks
Important: The KeyFrameAnimationT expects that the key frames are sorted by their time. But the KeyFrameCollectionT 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