SelectedShapesCollection.Toggle Method (DiagramItem)

Toggles the specified DiagramItem into or out of the selection; i.e., if the DiagramItem is selected, it is deselected. If the DiagramItem is not selected, it is selected.

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 Toggle ( _
    diagramItem As DiagramItem _
)
public void Toggle(
    DiagramItem diagramItem
)
public:
void Toggle(
    DiagramItem^ diagramItem
)
member Toggle : 
        diagramItem:DiagramItem -> unit
public function Toggle(
    diagramItem : DiagramItem
)

Parameters

.NET Framework Security

See Also

Reference

SelectedShapesCollection Class

Toggle Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace