Share via


ShapeGeometry.GetPerimeter(IGeometryHost) Method

Definition

Gets the graphics path which encompasses the geometry outline, including the thickness of the outline pen that lies outside of the graphics path used to draw the geometry. This is a singleton on the geometry class. Do not dispose. Use immediately. Use GetPathCopy if another path is needed!

public:
 virtual System::Drawing::Drawing2D::GraphicsPath ^ GetPerimeter(Microsoft::VisualStudio::Modeling::Diagrams::IGeometryHost ^ geometryHost);
public virtual System.Drawing.Drawing2D.GraphicsPath GetPerimeter (Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHost geometryHost);
abstract member GetPerimeter : Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHost -> System.Drawing.Drawing2D.GraphicsPath
override this.GetPerimeter : Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHost -> System.Drawing.Drawing2D.GraphicsPath
Public Overridable Function GetPerimeter (geometryHost As IGeometryHost) As GraphicsPath

Parameters

geometryHost
IGeometryHost

The instance data for the geometry.

Returns

The graphics path encompassing the geometry outline, including the pen thickness.

Applies to