Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds a DiagramItem to the current selection.
Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.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
- diagramItem 
 Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem- The DiagramItem to add to the current selection. 
Remarks
The added DiagramItem automatically becomes the primary DiagramItem.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.