ShapeGeometry.GetExtraPenWidth Method
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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaração
Public Function GetExtraPenWidth ( _
geometryHost As IGeometryHost _
) As Double
public double GetExtraPenWidth(
IGeometryHost geometryHost
)
public:
double GetExtraPenWidth(
IGeometryHost^ geometryHost
)
member GetExtraPenWidth :
geometryHost:IGeometryHost -> float
public function GetExtraPenWidth(
geometryHost : IGeometryHost
) : double
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.
Remarks
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.
.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.