Table of Contents

Constructor Pen

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

Pen(Color, float, DashStyle)

Initializes a new instance of the Pen class with the specified Color, Width and DashStyle properties.

public Pen(Color color, float width, DashStyle dashStyle)

Parameters

color Color

A Color structure that indicates the color of this Pen.

width float

A value indicating the width of this Pen, in device-independent units.

dashStyle DashStyle

A style used for dashed lines drawn with this Pen.

Pen(Color, float, DashStyle, LineCap, LineJoin)

Initializes a new instance of the Pen class with the specified Color, Width and DashStyle properties.

public Pen(Color color, float width, DashStyle dashStyle, LineCap lineCap, LineJoin lineJoin)

Parameters

color Color

A Color structure that indicates the color of this Pen.

width float

A value indicating the width of this Pen, in device-independent units.

dashStyle DashStyle

A style used for dashed lines drawn with this Pen.

lineCap LineCap

Specifies the available cap styles with which a Pen object can end a line.

lineJoin LineJoin

Specifies how to join consecutive line or curve segments.

Pen(Color, float)

Initializes a new instance of the Pen class with the specified Color and Width.

public Pen(Color color, float width)

Parameters

color Color

A Color structure that indicates the color of this Pen.

width float

A value indicating the width of this Pen, in device-independent units.

Pen(Color)

Initializes a new instance of the Pen class with the specified Color.

public Pen(Color color)

Parameters

color Color

A Color structure that indicates the color of this Pen.

Pen(Brush)

Initializes a new instance of the Pen class with the specified Brush.

public Pen(Brush brush)

Parameters

brush Brush

A Brush that indicates the color of this Pen.

Pen(Color, float, DashStyle, LineCap, LineJoin, bool)

Initializes a new instance of the Pen class with the specified color, width, dash style, line cap, and line join settings.

public Pen(Color color, float width, DashStyle dashStyle, LineCap lineCap, LineJoin lineJoin, bool immutable)

Parameters

color Color

The color of the pen used for drawing.

width float

The width of the pen, typically measured in device-independent units.

dashStyle DashStyle

The dash style of the pen, which determines the pattern of dashes and gaps.

lineCap LineCap

The style of the ends of lines drawn with the pen.

lineJoin LineJoin

The style of the joints between connected lines or segments.

immutable bool

A value indicating whether the pen is immutable. If true, the pen cannot be modified after creation; otherwise, it can be modified.