SelectedShapesCollection::DeferredAdd Method (DiagramItem^)
Visual Studio 2015
Defers adding a DiagramItem to the selection until ElementEventsEnded is raised. The DeferredAdd, DeferredRemove, DeferredPrimaryItem, and DeferredClear methods define the parameters to use in a single call to set the selection when ElementEventsEnded is raised.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Parameters
- diagramItem
-
Type:
Microsoft.VisualStudio.Modeling.Diagrams::DiagramItem^
The DiagramItem to add to the selection.
This method must be called during a transaction since the selection is deferred to ElementEventsEnded.
Show: