Gets the bounding box around the perimeter of the shape geometry.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'宣言
Protected Overridable Function GetPerimeterBoundingBox ( _
geometryHost As IGeometryHost _
) As RectangleD
'使用
Dim geometryHost As IGeometryHost
Dim returnValue As RectangleD
returnValue = Me.GetPerimeterBoundingBox(geometryHost)
protected virtual RectangleD GetPerimeterBoundingBox(
IGeometryHost geometryHost
)
protected:
virtual RectangleD GetPerimeterBoundingBox(
IGeometryHost^ geometryHost
)
protected function GetPerimeterBoundingBox(
geometryHost : IGeometryHost
) : RectangleD
Parameters
geometryHost
Type: Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHostThe instance of host data for the geometry.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
The bounding box around the perimeter of the shape geometry.
Remarks
The perimeter includes the path around the shape geometry and the width of the outline pen outside of the path.
Permissions
- 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.