Share via


IDiagram.SelectShapes Method

Sets the current selection to the given collection of shapes, and sets the Selection property. This does not activate the window that displays the diagram.

Namespace:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation
Assembly:  Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)

Syntax

'Declaration
Sub SelectShapes ( _
    shapes As IEnumerable(Of IShape) _
)
void SelectShapes(
    IEnumerable<IShape> shapes
)
void SelectShapes(
    IEnumerable<IShape^>^ shapes
)
abstract SelectShapes : 
        shapes:IEnumerable<IShape> -> unit
function SelectShapes(
    shapes : IEnumerable<IShape>
)

Parameters

  • shapes
    Type: System.Collections.Generic.IEnumerable<IShape>

    Each shape must be a selectable shape on this diagram. If there are several shapes in the list, they should have the same parent. If the collection is empty, the diagram will be selected.

.NET Framework Security

See Also

Reference

IDiagram Interface

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation Namespace