Skip to main content

Pen(UInt32, 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(
uint color,
double thickness = 1,
IDashStyle? dashStyle = null,
PenLineCap lineCap = PenLineCap.Flat,
PenLineJoin lineJoin = PenLineJoin.Miter,
double miterLimit = 10
)
View Source

Parameters

  UInt32
The stroke color.
  Double  (Optional)
The stroke thickness.
  IDashStyle  (Optional)
The dash style.
  PenLineCap  (Optional)
Specifies the type of graphic shape to use on both ends of a line.
  PenLineJoin  (Optional)
The line join.
  Double  (Optional)
The miter limit.

See Also

Reference

Pen Class
Pen Overload
Avalonia.Media Namespace