SelectedShapesCollection.Toggle Method (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.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
‘선언
Public Sub Toggle ( _
diagramItems As DiagramItemCollection _
)
public void Toggle(
DiagramItemCollection diagramItems
)
public:
void Toggle(
DiagramItemCollection^ diagramItems
)
member Toggle :
diagramItems:DiagramItemCollection -> unit
public function Toggle(
diagramItems : DiagramItemCollection
)
Parameters
- diagramItems
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection
The diagramItems 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.