Click or drag to resize
DigitalRuneNotifyingCollectionT Class
Represents collection of objects that sends notifications (events) when the collection is modified.
Inheritance Hierarchy
SystemObject
  System.Collections.ObjectModelCollectionT
    DigitalRune.CollectionsNotifyingCollectionT
      More...

Namespace: DigitalRune.Collections
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax
public class NotifyingCollection<T> : Collection<T>

Type Parameters

T
The type of elements in the collection.

The NotifyingCollectionT type exposes the following members.

Constructors
  NameDescription
Public methodNotifyingCollectionT
Initializes a new instance of the NotifyingCollectionT class.
Public methodNotifyingCollectionT(Boolean, Boolean)
Initializes a new instance of the NotifyingCollectionT class with the given settings.
Top
Methods
  NameDescription
Public methodAdd (Inherited from CollectionT.)
Public methodAddRange
Adds the elements of the specified collection to the end of the NotifyingCollectionT.
Public methodClear (Inherited from CollectionT.)
Protected methodClearItems (Overrides CollectionTClearItems.)
Public methodContains (Inherited from CollectionT.)
Public methodCopyTo (Inherited from CollectionT.)
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 NotifyingCollectionT.
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 CollectionT.)
Public methodInsert (Inherited from CollectionT.)
Protected methodInsertItem (Overrides CollectionTInsertItem(Int32, T).)
Public methodInsertRange
Inserts the elements of a collection into the NotifyingCollectionT at the specified index.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMove
Moves the item at the specified index to a new location in the collection.
Protected methodMoveItem
Moves the item at the specified index to a new location in the collection.
Protected methodOnCollectionChanged
Raises the CollectionChanged event.
Public methodRemove (Inherited from CollectionT.)
Public methodRemoveAt (Inherited from CollectionT.)
Protected methodRemoveItem (Overrides CollectionTRemoveItem(Int32).)
Public methodRemoveRange
Removes a range of elements from the NotifyingCollectionT.
Protected methodSetItem
Replaces the element at the specified index.
(Overrides CollectionTSetItem(Int32, T).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyAllowDuplicates
Gets or sets a value indicating whether duplicate items are allowed in the collection.
Public propertyAllowNull
Gets or sets a value indicating whether items are allowed in the collection.
Public propertyCount (Inherited from CollectionT.)
Public propertyItem
Gets or sets the element at the specified index.
(Inherited from CollectionT.)
Protected propertyItems (Inherited from CollectionT.)
Top
Events
  NameDescription
Public eventCollectionChanged
Occurs when items were added, replaced or removed.
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIListAdd
Adds an item to the IList.
(Inherited from CollectionT.)
Explicit interface implementationPrivate methodIListContains
Determines whether the IList contains a specific value.
(Inherited from CollectionT.)
Explicit interface implementationPrivate methodICollectionCopyTo
Copies the elements of the ICollection to an Array, starting at a particular Array index.
(Inherited from CollectionT.)
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through a collection.
(Inherited from CollectionT.)
Explicit interface implementationPrivate methodIListIndexOf
Determines the index of a specific item in the IList.
(Inherited from CollectionT.)
Explicit interface implementationPrivate methodIListInsert
Inserts an item into the IList at the specified index.
(Inherited from CollectionT.)
Explicit interface implementationPrivate propertyIListIsFixedSize
Gets a value indicating whether the IList has a fixed size.
(Inherited from CollectionT.)
Explicit interface implementationPrivate propertyICollectionTIsReadOnly (Inherited from CollectionT.)
Explicit interface implementationPrivate propertyIListIsReadOnly
Gets a value indicating whether the IList is read-only.
(Inherited from CollectionT.)
Explicit interface implementationPrivate propertyICollectionIsSynchronized
Gets a value indicating whether access to the ICollection is synchronized (thread safe).
(Inherited from CollectionT.)
Explicit interface implementationPrivate propertyIListItem
Gets or sets the element at the specified index.
(Inherited from CollectionT.)
Explicit interface implementationPrivate methodIListRemove
Removes the first occurrence of a specific object from the IList.
(Inherited from CollectionT.)
Explicit interface implementationPrivate propertyICollectionSyncRoot
Gets an object that can be used to synchronize access to the ICollection.
(Inherited from CollectionT.)
Top
Remarks

This collection is similar to the ObservableCollection{T} in the .NET Framework. (In .NET 3.5 the ObservableCollection{T} is located in the WindowsBase.dll. Therefore it is not usable in non-WPF applications. This has been solved in .NET 4.0 where the class was moved into the System.dll.)

See Also
Inheritance Hierarchy
SystemObject
  System.Collections.ObjectModelCollectionT
    DigitalRune.CollectionsNotifyingCollectionT
      DigitalRune.Animation.CharacterBoneMapperCollection
      DigitalRune.Game.StatesSubStatesCollection
      DigitalRune.Game.StatesTransitionCollection
      DigitalRune.Geometry.CollisionsCollisionObjectCollection
      DigitalRune.GraphicsGraphicsScreenCollection
      DigitalRune.Graphics.InteropPresentationTargetCollection
      DigitalRune.ParticlesParticleEffectorCollection
      DigitalRune.ParticlesParticleSystemCollection
      DigitalRune.Physics.ConstraintsConstraintCollection
      DigitalRune.Physics.ForceEffectsForceEffectCollection
      DigitalRune.PhysicsRigidBodyCollection