Table of Contents

Class DottedLine

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

Implementation of ILineDrawer which draws a dotted horizontal line along the bottom edge of the specified rectangle.

public class DottedLine : ILineDrawer
Inheritance
DottedLine
Implements
Inherited Members

Constructors

DottedLine()

Constructs a dotted horizontal line which will be drawn along the bottom edge of the specified rectangle.

public DottedLine()

DottedLine(float)

Constructs a dotted horizontal line which will be drawn along the bottom edge of the specified rectangle.

public DottedLine(float lineWidth)

Parameters

lineWidth float

the width of the line

DottedLine(float, float)

Constructs a dotted horizontal line which will be drawn along the bottom edge of the specified rectangle.

public DottedLine(float lineWidth, float gap)

Parameters

lineWidth float

the width of the line

gap float

the gap between the center of the dots of the dotted line.

Fields

gap

the gap between the dots.

protected float gap

Field Value

float

Methods

Draw(PdfCanvas, Rectangle)

public virtual void Draw(PdfCanvas canvas, Rectangle drawArea)

Parameters

canvas PdfCanvas
drawArea Rectangle

GetColor()

public virtual Color GetColor()

Returns

Color

GetGap()

Getter for the gap between the center of the dots of the dotted line.

public virtual float GetGap()

Returns

float

the gap between the center of the dots

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

SetGap(float)

Setter for the gap between the center of the dots of the dotted line.

public virtual void SetGap(float gap)

Parameters

gap float

the gap between the center of the dots

SetLineWidth(float)

Sets line width in points

public virtual void SetLineWidth(float lineWidth)

Parameters

lineWidth float

new line width