SelectedShapesCollection.Set 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.
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.