Search
DiagramItemCollection Members
Constructors Fields Properties Methods
 


Represents a strongly-typed collection of DiagramItem objects.

The following tables list the members exposed by the DiagramItemCollection type.

 Public Constructors

  Name Description

DiagramItemCollection

Initializes a new instance of the DiagramItemCollection class.

 Protected Fields

  Name Description

InnerList

Gets a List<T> containing the list of elements in the collection instance. (Inherited from CollectionBase.)

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 ItemCollectionBase.)

notifyParent

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

 Public Properties

  Name Description

Count

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

IsReadOnly

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

Item

Gets or sets the element at the specified index. (Inherited from CollectionBase.)

 Public Methods

  Name Description

Add

Adds the specified diagram item to the collection. (Inherited from ItemCollectionBase.)

Clear

Removes all diagram items from the collection. (Inherited from ItemCollectionBase.)

Clone

Creates a shallow copy of this collection.

Contains

Determines whether an element is in the 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.)

GetAt

Gets the diagram item at the specified position. (Inherited from ItemCollectionBase.)

GetEnumerator

Returns an enumerator that iterates through the 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 the specified diagram item into the collection at the specified position. (Inherited from ItemCollectionBase.)

Remove

Removes the diagram item from the collection. (Inherited from ItemCollectionBase.)

RemoveAt

Removes the diagram item from the collection. (Inherited from ItemCollectionBase.)

Sort

Overloaded. Sorts the elements in this collection. (Inherited from CollectionBase.)

 Protected Methods

  Name Description

RaiseAdding

Raises the Adding event. (Inherited from ItemCollectionBase.)

RaiseInserting

Raises the Inserting event. (Inherited from ItemCollectionBase.)

RaiseRemoving

Raises the Removing event. (Inherited from ItemCollectionBase.)

 See Also