Class ColumnDocumentRenderer
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
Documentthe Document on which this Renderer will calculate and execute element placements
immediateFlush
boolwhether 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
Documentthe 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
nextAreaNumber
protected int nextAreaNumber
Field Value
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
UpdateCurrentArea(LayoutResult)
protected override LayoutArea UpdateCurrentArea(LayoutResult overflowResult)
Parameters
overflowResult
LayoutResult