共用方式為


HighlightedShapesCollection.GetDiagramItemsContainingShape Method

Gets a collection of diagram items in the highlight list 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

Return Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection

.NET Framework Security

See Also

Reference

HighlightedShapesCollection Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace