This documentation is archived and is not being maintained.

Pen.MiterLimit Property

Gets or sets the limit of the thickness of the join on a mitered corner.

Namespace:  System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public float MiterLimit { get; set; }

Property Value

Type: System.Single
The limit of the thickness of the join on a mitered corner.

ExceptionCondition
ArgumentException

The MiterLimit property is set on an immutable Pen, such as those returned by the Pens class.

The miter length is the distance from the intersection of the line walls on the inside of the join to the intersection of the line walls outside of the join. The miter length can be large when the angle between two lines is small. The miter limit is the maximum allowed ratio of miter length to stroke width. The default value is 10.0f.

If the miter length of the join of the intersection exceeds the limit of the join, then the join will be beveled to keep it within the limit of the join of the intersection.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: