Udostępnij za pośrednictwem


SelectedShapesCollection.Set Method

Definition

Overloads

Set(DiagramItem)

Replaces the current selection with a new single selection.

Set(DiagramItemCollection)

Replaces the current selection with a new selection.

Set(DiagramItem)

Replaces the current selection with a new single selection.

public:
 void Set(Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^ diagramItem);
public void Set (Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem diagramItem);
member this.Set : Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem -> unit
Public Sub Set (diagramItem As DiagramItem)

Parameters

diagramItem
DiagramItem

The DiagramItem that is to replace the current selection.

Remarks

If the DiagramItem is null, then the selection is cleared.

Applies to

Set(DiagramItemCollection)

Replaces the current selection with a new selection.

public:
 void Set(Microsoft::VisualStudio::Modeling::Diagrams::DiagramItemCollection ^ diagramItems);
public void Set (Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection diagramItems);
member this.Set : Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection -> unit
Public Sub Set (diagramItems As DiagramItemCollection)

Parameters

diagramItems
DiagramItemCollection

The collection of DiagramItems that is to replace the current selection.

Remarks

If the DiagramItemCollection is null, then the selection is cleared. Clears deferred selection before taking any actions.

Applies to