SelectedShapesCollection.GetDiagramItemsContainingShape(ShapeElement) 方法

定义

获取选择中其 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

参数

shape
ShapeElement

要查找的形状。

返回

DiagramItemCollection

选择中其 Shape 属性为指定形状的关系图项的集合。

适用于