Table of Contents

Class MulticolRenderer

Namespace
iText.Layout.Renderer
Assembly
itext.layout.dll

Represents a renderer for columns.

public class MulticolRenderer : AbstractRenderer, IRenderer, IPropertyContainer
Inheritance
MulticolRenderer
Implements
Inherited Members

Constructors

MulticolRenderer(MulticolContainer)

Creates a DivRenderer from its corresponding layout object.

public MulticolRenderer(MulticolContainer modelElement)

Parameters

modelElement MulticolContainer

the MulticolContainer which this object should manage

Methods

CreateOverflowRenderer(IRenderer)

Creates an overflow renderer.

protected virtual AbstractRenderer CreateOverflowRenderer(IRenderer overflowedContentRenderer)

Parameters

overflowedContentRenderer IRenderer

an overflowed content renderer

Returns

AbstractRenderer

a new AbstractRenderer instance

CreateSplitRenderer(IList<IRenderer>)

Creates a split renderer.

[Obsolete("use GridMulticolUtil.CreateSplitRenderer(System.Collections.Generic.IList{E}, AbstractRenderer)")]
protected virtual AbstractRenderer CreateSplitRenderer(IList<IRenderer> children)

Parameters

children IList<IRenderer>

children of the split renderer

Returns

AbstractRenderer

a new AbstractRenderer instance

DrawBorder(DrawContext)

Performs the drawing operation for the border of this renderer, if defined by any of the BORDER values in either the layout element or this IRenderer itself.

public override void DrawBorder(DrawContext drawContext)

Parameters

drawContext DrawContext

the context (canvas, document, etc) of this drawing operation.

GetNextRenderer()

public override IRenderer GetNextRenderer()

Returns

IRenderer

Layout(LayoutContext)

public override LayoutResult Layout(LayoutContext layoutContext)

Parameters

layoutContext LayoutContext

Returns

LayoutResult

LayoutInColumns(LayoutContext, Rectangle)

Layouts multicol in the passed area.

protected virtual MulticolRenderer.MulticolLayoutResult LayoutInColumns(LayoutContext layoutContext, Rectangle actualBBox)

Parameters

layoutContext LayoutContext

the layout context

actualBBox Rectangle

the area to layout multicol on

Returns

MulticolRenderer.MulticolLayoutResult

the MulticolRenderer.MulticolLayoutResult instance

SetHeightCalculator(ColumnHeightCalculator)

Sets the height calculator to be used by this renderer.

public void SetHeightCalculator(MulticolRenderer.ColumnHeightCalculator heightCalculator)

Parameters

heightCalculator MulticolRenderer.ColumnHeightCalculator

the height calculator to be used by this renderer.