Udostępnij za pośrednictwem


DiagramItemCollection.Add Method

Definition

Overloads

Add(DiagramItem)

Adds a specific DiagramItem to the collection.

Add(ICollection)

Adds the DiagramItem of an ICollection to the end of the DiagramItemCollection

Add(DiagramItem)

Adds a specific DiagramItem to the collection.

public:
 virtual void Add(Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^ diagramItem);
public virtual void Add (Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem diagramItem);
abstract member Add : Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem -> unit
override this.Add : Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem -> unit
Public Overridable Sub Add (diagramItem As DiagramItem)

Parameters

diagramItem
DiagramItem

The DiagramItem to add to this collection.

Applies to

Add(ICollection)

Adds the DiagramItem of an ICollection to the end of the DiagramItemCollection

public:
 virtual void Add(System::Collections::ICollection ^ diagramItemsToAdd);
public virtual void Add (System.Collections.ICollection diagramItemsToAdd);
abstract member Add : System.Collections.ICollection -> unit
override this.Add : System.Collections.ICollection -> unit
Public Overridable Sub Add (diagramItemsToAdd As ICollection)

Parameters

diagramItemsToAdd
ICollection

The collection of DiagramItems to add to this collection.

Applies to