Share via


SelectedShapesCollection.Toggle Method

Definition

Overloads

Toggle(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.

Toggle(DiagramItemCollection)

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

Toggle(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.

public:
 void Toggle(Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^ diagramItem);
public void Toggle (Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem diagramItem);
member this.Toggle : Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem -> unit
Public Sub Toggle (diagramItem As DiagramItem)

Parameters

diagramItem
DiagramItem

The diagramItem to toggle into or out of the selection.

Applies to

Toggle(DiagramItemCollection)

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

public:
 void Toggle(Microsoft::VisualStudio::Modeling::Diagrams::DiagramItemCollection ^ diagramItems);
public void Toggle (Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection diagramItems);
member this.Toggle : Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection -> unit
Public Sub Toggle (diagramItems As DiagramItemCollection)

Parameters

diagramItems
DiagramItemCollection

The diagramItems to toggle into or out of the selection.

Applies to