Table of Contents

Interface ILineDrawer

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

The ILineDrawer defines a drawing operation on a PdfCanvas

public interface ILineDrawer

Remarks

The ILineDrawer defines a drawing operation on a PdfCanvas
This interface allows to customize the 'empty' space in a com.itextpdf.layout.element.TabStop through a Strategy design pattern

Methods

Draw(PdfCanvas, Rectangle)

Performs configurable drawing operations related to specific region coordinates on a canvas.

void Draw(PdfCanvas canvas, Rectangle drawArea)

Parameters

canvas PdfCanvas

the canvas to draw on

drawArea Rectangle

the rectangle in relation to which to fulfill drawing instructions

GetColor()

Gets the color of the line

Color GetColor()

Returns

Color

color of the line

GetLineWidth()

Gets the width of the line

float GetLineWidth()

Returns

float

width of the line

SetColor(Color)

Sets line color

void SetColor(Color color)

Parameters

color Color

new line color

SetLineWidth(float)

Sets line width in points

void SetLineWidth(float lineWidth)

Parameters

lineWidth float

new line width