SelectedShapesCollection.DeferredPrimaryItem(DiagramItem) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defers setting the primary item in 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.
public:
void DeferredPrimaryItem(Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^ diagramItem);
public void DeferredPrimaryItem (Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem diagramItem);
member this.DeferredPrimaryItem : Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem -> unit
Public Sub DeferredPrimaryItem (diagramItem As DiagramItem)
Parameters
- diagramItem
- DiagramItem
The DiagramItem to set as the primary item in the selection.
Remarks
This method must be called during a transaction since the selection is deferred to ElementEventsEnded.