SelectedShapesCollection.GetDiagramItemsContainingShape Method
Gets a collection of diagram items in the selection whose Shape property is the specified shape.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'宣言
Public Function GetDiagramItemsContainingShape ( _
shape As ShapeElement _
) As DiagramItemCollection
public DiagramItemCollection GetDiagramItemsContainingShape(
ShapeElement shape
)
public:
DiagramItemCollection^ GetDiagramItemsContainingShape(
ShapeElement^ shape
)
member GetDiagramItemsContainingShape :
shape:ShapeElement -> DiagramItemCollection
public function GetDiagramItemsContainingShape(
shape : ShapeElement
) : DiagramItemCollection
Parameters
- shape
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
The shape to find.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection
.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.