ShapeGeometry::GetExtraPenWidth Method (IGeometryHost^)

 

Gets the width of the outline pen that is outside the boundary of the shape.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

public:
double GetExtraPenWidth(
	IGeometryHost^ geometryHost
)

Parameters

geometryHost
Type: Microsoft.VisualStudio.Modeling.Diagrams::IGeometryHost^

The shape or link.

Return Value

Type: System::Double

The portion of the pen width that draws outside the borders of the geometry.

When the outline of a shape is drawn, the pen follows a path along the boundary of the shape. The pen has a finite thickness. Therefore part of the painted boundary will be outside the actual boundary of the shape. This function returns the portion of the pen – usually half the pen width – that is outside the boundary. This information is required when computing the area that must be repainted when the shape is invalidated.

Return to top
Show: