ShapeGeometry::GetExtraPenWidth Method (IGeometryHost^)
Visual Studio 2015
Gets the width of the outline pen that is outside the boundary of the shape.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Parameters
- geometryHost
-
Type:
Microsoft.VisualStudio.Modeling.Diagrams::IGeometryHost^
The shape or link.
Return Value
Type: System::DoubleThe 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.
Show: