DiagramLite Programmer's Guide
CollectionBase(T, E) Members
Constructors Fields Properties Methods
 


Defines a collection that raises events to notify when elements are added to or removed from it.

The following tables list the members exposed by the CollectionBase(T, E) type.

 Public Constructors

  Name Description

CollectionBase

Overloaded.  

 Protected Fields

  Name Description

itemEventArgs

An ItemEventArgs instance used for passing arguments to the event handlers for the events of this collection. Used to avoid creating many small objects that would burden the garbage collector.

notifyParent

If enabled, the collection raises events to let their containing objects handle the addition or removal of items.

 Public Properties

  Name Description

Count

Gets the number of items contained in the collection.

IsReadOnly

Gets a value indicating whether the collection is read-only.

Item

An indexer that lets you access the element at the specified position.

 Public Methods

  Name Description

Add

Adds an item to the collection.

Clear

Removes all items from the collection.

Contains

Determines whether an element is in the List(T).

CopyTo

 

GetEnumerator

Returns an enumerator for this collection.

IndexOf

Searches for the specified object and returns the zero-based index of the first occurrence within the entire collection.

Insert

Inserts an element into the Collection at the specified index.

Remove

Removes the first occurrence of a specific object from the collection.

RemoveAt

Removes the element at the specified index of the collection.

 Protected Methods

  Name Description

RaiseAdding

Raises the Adding event.

RaiseInserting

Raises the Inserting event.

RaiseRemoving

Raises the Removing event.

 See Also

CollectionBase(T, E) Class
MindFusion.Diagramming Namespace