Search
ItemCollectionBase(T) Members
Constructors Fields Properties Methods
 


A base collection class for the diagram item collections.

The following tables list the members exposed by the ItemCollectionBase(T) type.

 Public Constructors

  Name Description

ItemCollectionBase

Overloaded.  

 Protected Fields

  Name Description

itemEventArgs

A 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. (Inherited from CollectionBase.)

notifyParent

If enabled, the collection raises events to let their containing objects handle the addition or removal of items. (Inherited from CollectionBase.)

 Public Properties

  Name Description

Count

Gets the number of items contained in the collection. (Inherited from CollectionBase.)

IsReadOnly

Gets a value indicating whether the collection is read-only. (Inherited from CollectionBase.)

Item

An indexer that lets you access the element at the specified position. (Inherited from CollectionBase.)

 Public Methods

  Name Description

Add

Adds an item to the collection. (Inherited from CollectionBase.)

Clear

Removes all items from the collection. (Inherited from CollectionBase.)

Contains

Determines whether an element is in this collection. (Inherited from CollectionBase.)

CopyTo

Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array. (Inherited from CollectionBase.)

GetEnumerator

Returns an enumerator for this collection. (Inherited from CollectionBase.)

IndexOf

Searches for the specified object and returns the zero-based index of the first occurrence within the entire collection. (Inherited from CollectionBase.)

Insert

Inserts an element into the collection at the specified index. (Inherited from CollectionBase.)

Remove

Removes the first occurrence of a specific object from the collection. (Inherited from CollectionBase.)

RemoveAt

Removes the element at the specified index of the collection. (Inherited from CollectionBase.)

 Protected Methods

  Name Description

RaiseAdding

Raises the Adding internal event. (Inherited from CollectionBase.)

RaiseInserting

Raises the Inserting internal event. (Inherited from CollectionBase.)

RaiseRemoving

Raises the Removing internal event. (Inherited from CollectionBase.)

 See Also