SelectedShapesCollection::DeferredAdd Method (DiagramItem^)

 

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.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

public:
void DeferredAdd(
	DiagramItem^ diagramItem
)

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.

Return to top
Show: