Diagram.FindShape Method
Finds the shape for the specified element on the diagram.
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 FindShape ( _
element As ModelElement _
) As ShapeElement
public ShapeElement FindShape(
ModelElement element
)
public:
ShapeElement^ FindShape(
ModelElement^ element
)
member FindShape :
element:ModelElement -> ShapeElement
public function FindShape(
element : ModelElement
) : ShapeElement
Parameters
- element
Type: Microsoft.VisualStudio.Modeling.ModelElement
The 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.