PresentationHelpers.GetSelectedShapes<T> Method (IDiagram)
Get all the selected shapes that display UML model elements of the specified type.
Namespace: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)
Syntax
public static IEnumerable<IShape<T>> GetSelectedShapes<T>(
this IDiagram diagram
)
where T : IElement
public:
generic<typename T>
where T : IElement
[ExtensionAttribute]
static IEnumerable<IShape<T>^>^ GetSelectedShapes(
IDiagram^ diagram
)
static member GetSelectedShapes<'T when 'T : IElement> :
diagram:IDiagram -> IEnumerable<IShape<'T>>
<ExtensionAttribute>
Public Shared Function GetSelectedShapes(Of T As IElement) (
diagram As IDiagram
) As IEnumerable(Of IShape(Of T))
Parameters
Return Value
Type: System.Collections.Generic.IEnumerable<IShape<T>>
All the selected shapes in the diagram that display a UML model element of the specified type or one of its subtypes.
Type Parameters
- T
IElement or one of its subtypes.
Remarks
For more information, see:
See Also
PresentationHelpers Class
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation Namespace
Return to top