Bagikan melalui


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.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)

Syntax

'Declaration
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

Return Value

Type: 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

See Also

Reference

ShapeGeometry Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace