Gets the bounds for the shape field.
Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
声明
Public Overridable Function GetBounds ( _
    parentShape As ShapeElement _
) As RectangleD
public virtual RectangleD GetBounds(
    ShapeElement parentShape
)
public:
virtual RectangleD GetBounds(
    ShapeElement^ parentShape
)
abstract GetBounds : 
        parentShape:ShapeElement -> RectangleD 
override GetBounds : 
        parentShape:ShapeElement -> RectangleD 
public function GetBounds(
    parentShape : ShapeElement
) : RectangleD
Parameters
- parentShape
 Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
 The shape element to which the shape field is assigned.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
The bounds for the shape.
.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.