Table of Contents

Class VerticalPositionMark

Namespace
iTextSharp.text.pdf.draw
Assembly
iTextSharp.LGPLv2.Core.dll

Helper class implementing the DrawInterface. Can be used to add horizontal or vertical separators. Won't draw anything unless you implement the draw method. @since 2.1.2

public class VerticalPositionMark : IDrawInterface, IElement
Inheritance
VerticalPositionMark
Implements
Derived
Inherited Members

Constructors

VerticalPositionMark()

Creates a vertical position mark that won't draw anything unless you define a DrawInterface.

public VerticalPositionMark()

VerticalPositionMark(IDrawInterface, float)

Creates a vertical position mark that won't draw anything unless you define a DrawInterface.

public VerticalPositionMark(IDrawInterface drawInterface, float offset)

Parameters

drawInterface IDrawInterface

the drawInterface for this vertical position mark.

offset float

the offset for this vertical position mark.

Properties

Chunks

@see com.lowagie.text.Element#getChunks()

public IList<Chunk> Chunks { get; }

Property Value

IList<Chunk>

DrawInterface

Setter for the interface with the overruling Draw() method.

public virtual IDrawInterface DrawInterface { get; set; }

Property Value

IDrawInterface

Offset

Setter for the offset. The offset is relative to the current Y position. If you want to underline something, you have to choose a negative offset.

public virtual float Offset { get; set; }

Property Value

float

Type

@see com.lowagie.text.Element#type()

public int Type { get; }

Property Value

int

Methods

Draw(PdfContentByte, float, float, float, float, float)

@see com.lowagie.text.pdf.draw.DrawInterface#draw(com.lowagie.text.pdf.PdfContentByte, float, float, float, float, float)

public virtual void Draw(PdfContentByte canvas, float llx, float lly, float urx, float ury, float y)

Parameters

canvas PdfContentByte
llx float
lly float
urx float
ury float
y float

IsContent()

@see com.lowagie.text.Element#isContent()

public bool IsContent()

Returns

bool

IsNestable()

@see com.lowagie.text.Element#isNestable()

public bool IsNestable()

Returns

bool

Process(IElementListener)

@see com.lowagie.text.Element#process(com.lowagie.text.ElementListener)

public bool Process(IElementListener listener)

Parameters

listener IElementListener

Returns

bool