SelectedShapesCollection.DeferredPrimaryItem Method

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.

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

Syntax

'Declaration
Public Sub DeferredPrimaryItem ( _
    diagramItem As DiagramItem _
)
public void DeferredPrimaryItem(
    DiagramItem diagramItem
)
public:
void DeferredPrimaryItem(
    DiagramItem^ diagramItem
)
member DeferredPrimaryItem : 
        diagramItem:DiagramItem -> unit
public function DeferredPrimaryItem(
    diagramItem : DiagramItem
)

Parameters

Remarks

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

.NET Framework Security

See Also

Reference

SelectedShapesCollection Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace