Table of Contents

Constructor Pen

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

Pen(Color, double, DashStyle)

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

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

Parameters

color Color

A Color structure that indicates the color of this Pen.

width double

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, double, DashStyle, LineCap, LineJoin)

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

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

Parameters

color Color

A Color structure that indicates the color of this Pen.

width double

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, double)

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

public Pen(Color color, double width)

Parameters

color Color

A Color structure that indicates the color of this Pen.

width double

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.