SelectedShapesCollection.DeferredClearBeforeAdditions Method

Defers clearing the selection until ElementEventsEnded is raised. This clears the selection first, and then any deferred additions or removals are applied. 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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)


Public Sub DeferredClearBeforeAdditions
public void DeferredClearBeforeAdditions()
void DeferredClearBeforeAdditions()
member DeferredClearBeforeAdditions : unit -> unit
public function DeferredClearBeforeAdditions()


This method must be called during a transaction since the selection is deferred to ElementEventsEnded.

.NET Framework Security

See Also


SelectedShapesCollection Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace