Skip to main content

Pen(IBrush, Double, IDashStyle, PenLineCap, PenLineJoin, Double) Constructor

Initializes a new instance of the Pen class.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public Pen(
IBrush? brush,
double thickness = 1,
IDashStyle? dashStyle = null,
PenLineCap lineCap = PenLineCap.Flat,
PenLineJoin lineJoin = PenLineJoin.Miter,
double miterLimit = 10
)

Parameters

  IBrush
The brush used to draw.
  Double  (Optional)
The stroke thickness.
  IDashStyle  (Optional)
The dash style.
  PenLineCap  (Optional)
The line cap.
  PenLineJoin  (Optional)
The line join.
  Double  (Optional)
The miter limit.

See Also

Reference

Pen Class
Pen Overload
Avalonia.Media Namespace