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.

Exception Condition
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
Available since 1.1
Return to top
Show: