Share via


HighlightedShapesCollection.GetDiagramItemsContainingShape Method

Definition

Gets a collection of diagram items in the highlight list whose Shape property is the specified shape.

public:
 Microsoft::VisualStudio::Modeling::Diagrams::DiagramItemCollection ^ GetDiagramItemsContainingShape(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ shape);
public Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection GetDiagramItemsContainingShape (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement shape);
member this.GetDiagramItemsContainingShape : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection
Public Function GetDiagramItemsContainingShape (shape As ShapeElement) As DiagramItemCollection

Parameters

shape
ShapeElement

The shape to find.

Returns

A collection of diagram items in the highlight list whose Shape property is the specified shape.

Applies to