Table of Contents

Class ColumnDocumentRenderer

Namespace
iText.Layout
Assembly
itext.layout.dll

This class is used for convenient multi-column Document Layouting

public class ColumnDocumentRenderer : DocumentRenderer, IRenderer, IPropertyContainer
Inheritance
ColumnDocumentRenderer
Implements
Inherited Members

Constructors

ColumnDocumentRenderer(Document, bool, Rectangle[])

Creates a ColumnDocumentRenderer whose elements need not be flushed immediately.

public ColumnDocumentRenderer(Document document, bool immediateFlush, Rectangle[] columns)

Parameters

document Document

the Document on which this Renderer will calculate and execute element placements

immediateFlush bool

whether or not to flush contents as soon as possible

columns Rectangle[]

an array of Rectangle specifying the acceptable positions for elements on a page

ColumnDocumentRenderer(Document, Rectangle[])

Creates a ColumnDocumentRenderer.

public ColumnDocumentRenderer(Document document, Rectangle[] columns)

Parameters

document Document

the Document on which this Renderer will calculate and execute element placements

columns Rectangle[]

an array of Rectangle specifying the acceptable positions for elements on a page

Remarks

Creates a ColumnDocumentRenderer. Sets immediateFlush to true.

Fields

columns

protected Rectangle[] columns

Field Value

Rectangle[]

nextAreaNumber

protected int nextAreaNumber

Field Value

int

Methods

GetNextAreaNumber()

Gets the array index of the next area that will be written on after the current one is full (overflowed).

public virtual int GetNextAreaNumber()

Returns

int

the array index of the next area that will be written on

GetNextRenderer()

public override IRenderer GetNextRenderer()

Returns

IRenderer

UpdateCurrentArea(LayoutResult)

protected override LayoutArea UpdateCurrentArea(LayoutResult overflowResult)

Parameters

overflowResult LayoutResult

Returns

LayoutArea