Delen via


SelectedShapesCollection.Set Method (DiagramItem)

Replaces the current selection with a new single selection.

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

Syntax

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

Parameters

Remarks

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

.NET Framework Security

See Also

Reference

SelectedShapesCollection Class

Set Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace