Diagram.FindShape Method
Finds the shape for the specified element on the diagram.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'Declaration
Public Function FindShape ( _
element As ModelElement _
) As ShapeElement
'Usage
Dim instance As Diagram
Dim element As ModelElement
Dim returnValue As ShapeElement
returnValue = instance.FindShape(element)
public ShapeElement FindShape(
ModelElement element
)
public:
ShapeElement^ FindShape(
ModelElement^ element
)
public function FindShape(
element : ModelElement
) : ShapeElement
Parameters
element
Type: Microsoft.VisualStudio.Modeling.ModelElementThe element.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
The shape for the specified element.
.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.