IDiagram::SelectedShapes Property
Visual Studio 2015
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.
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)
To obtain a collection of shapes filtered to include those only of particular types, and excluding the diagram, use GetSelectedShapes().
Show: