PresentationHelpers.SelectShapes Method
Select a collection of shapes on the diagram. The shapes must be selectable. The diagram's SelectedShapes property will be updated.
Namespace: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Sub SelectShapes ( _
diagram As IDiagram, _
ParamArray shapes As IShape() _
)
public static void SelectShapes(
this IDiagram diagram,
params IShape[] shapes
)
[ExtensionAttribute]
public:
static void SelectShapes(
IDiagram^ diagram,
... array<IShape^>^ shapes
)
static member SelectShapes :
diagram:IDiagram *
shapes:IShape[] -> unit
public static function SelectShapes(
diagram : IDiagram,
... shapes : IShape[]
)
Parameters
shapes
Type: array<Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation.IShape[]The shapes to select.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IDiagram. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
For more information, see:
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation Namespace