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
diagramItem
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemThe 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.