Table of Contents

Method GetAsPen

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

GetAsPen(double)

Gets this color as Pen with the specified width.

public Pen GetAsPen(double width = 1)

Parameters

width double

Width of the pen.

Returns

Pen

GetAsPen(double, DashStyle)

Gets this color as Pen with the specified width and DashStyle.

public Pen GetAsPen(double width, DashStyle dashStyle)

Parameters

width double

Width of the pen. Optional. Default is 1.

dashStyle DashStyle

Dash style of the pen. Optional. Default is Solid.

Returns

Pen