ImmutablePen(UInt32, Double, ImmutableDashStyle, PenLineCap, PenLineJoin, Double) Constructor
Initializes a new instance of the Pen class.
Definition
Namespace: Avalonia.Media.Immutable
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public ImmutablePen(
uint color,
double thickness = 1,
ImmutableDashStyle? dashStyle = null,
PenLineCap lineCap = PenLineCap.Flat,
PenLineJoin lineJoin = PenLineJoin.Miter,
double miterLimit = 10
)
Public Sub New (
color As UInteger,
Optional thickness As Double = 1,
Optional dashStyle As ImmutableDashStyle = Nothing,
Optional lineCap As PenLineCap = PenLineCap.Flat,
Optional lineJoin As PenLineJoin = PenLineJoin.Miter,
Optional miterLimit As Double = 10
)
new :
color : uint32 *
?thickness : float *
?dashStyle : ImmutableDashStyle *
?lineCap : PenLineCap *
?lineJoin : PenLineJoin *
?miterLimit : float
(* Defaults:
let _thickness = defaultArg thickness 1
let _dashStyle = defaultArg dashStyle null
let _lineCap = defaultArg lineCap PenLineCap.Flat
let _lineJoin = defaultArg lineJoin PenLineJoin.Miter
let _miterLimit = defaultArg miterLimit 10
*)
-> ImmutablePen
Parameters
- UInt32
- The stroke color.
- Double (Optional)
- The stroke thickness.
- ImmutableDashStyle (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
ImmutablePen Class
ImmutablePen Overload
Avalonia.Media.Immutable Namespace