ShapeGeometry.GetPerimeter Method
Gets the path of the perimeter around the shape, including the width of the pen that draws the boundary. Make a copy of this path if you want to retain it.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
Syntax
'Declaration
Public Overridable Function GetPerimeter ( _
geometryHost As IGeometryHost _
) As GraphicsPath
public virtual GraphicsPath GetPerimeter(
IGeometryHost geometryHost
)
public:
virtual GraphicsPath^ GetPerimeter(
IGeometryHost^ geometryHost
)
abstract GetPerimeter :
geometryHost:IGeometryHost -> GraphicsPath
override GetPerimeter :
geometryHost:IGeometryHost -> GraphicsPath
public function GetPerimeter(
geometryHost : IGeometryHost
) : GraphicsPath
Parameters
geometryHost
Type: Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHostThe shape or link.
Return Value
Type: GraphicsPath
The perimeter around the shape geometry.
Remarks
The perimeter includes the path around the shape geometry and the width of the outline pen outside of the path.
.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.