IDiagram.SelectedShapes Property

The collection of shapes that are currently selected. If no individual shape is selected, the collection will contain the diagram as its only member. If other shapes are selected, the diagram will not appear in the collection.

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

Syntax

'Declaration
ReadOnly Property SelectedShapes As IEnumerable(Of IShape)
IEnumerable<IShape> SelectedShapes { get; }
property IEnumerable<IShape^>^ SelectedShapes {
    IEnumerable<IShape^>^ get ();
}
abstract SelectedShapes : IEnumerable<IShape> with get
function get SelectedShapes () : IEnumerable<IShape>

Property Value

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

Remarks

To obtain a collection of shapes filtered to include those only of particular types, and excluding the diagram, use GetSelectedShapes().

.NET Framework Security

See Also

Reference

IDiagram Interface

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation Namespace