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
diagramItem
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemThe diagramItem to toggle into or out of the selection.
.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.