Partilhar 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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'Declaração
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