Table of Contents

Class DashedLine

Namespace
iText.Kernel.Pdf.Canvas.Draw
Assembly
itext.kernel.dll

Implementation of ILineDrawer which draws a dashed horizontal line over the middle of the specified rectangle.

public class DashedLine : ILineDrawer
Inheritance
DashedLine
Implements
Inherited Members

Constructors

DashedLine()

public DashedLine()

DashedLine(float)

Creates an instance of DashedLine with the specified line width.

public DashedLine(float lineWidth)

Parameters

lineWidth float

the line width

Methods

Draw(PdfCanvas, Rectangle)

public virtual void Draw(PdfCanvas canvas, Rectangle drawArea)

Parameters

canvas PdfCanvas
drawArea Rectangle

GetColor()

public virtual Color GetColor()

Returns

Color

GetLineWidth()

Gets line width in points.

public virtual float GetLineWidth()

Returns

float

line thickness

SetColor(Color)

public virtual void SetColor(Color color)

Parameters

color Color

SetLineWidth(float)

Sets line width in points.

public virtual void SetLineWidth(float lineWidth)

Parameters

lineWidth float

new line width