Edit

Share via


Pen.MiterLimit Property

Definition

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

public:
 property float MiterLimit { float get(); void set(float value); };
public float MiterLimit { get; set; }
member this.MiterLimit : single with get, set
Public Property MiterLimit As Single

Property Value

The limit of the thickness of the join on a mitered corner.

Exceptions

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

Remarks

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.

Applies to