SelectedShapesCollection.Add Method (DiagramItem)

Adds a DiagramItem to the current selection.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)

Syntax

'Declaration
Public Sub Add ( _
    diagramItem As DiagramItem _
)
public void Add(
    DiagramItem diagramItem
)
public:
void Add(
    DiagramItem^ diagramItem
)
member Add : 
        diagramItem:DiagramItem -> unit
public function Add(
    diagramItem : DiagramItem
)

Parameters

Remarks

The added DiagramItem automatically becomes the primary DiagramItem.

.NET Framework Security

See Also

Reference

SelectedShapesCollection Class

Add Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace