Class MulticolRenderer
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
MulticolContainerthe MulticolContainer which this object should manage
Methods
CreateOverflowRenderer(IRenderer)
Creates an overflow renderer.
protected virtual AbstractRenderer CreateOverflowRenderer(IRenderer overflowedContentRenderer)
Parameters
overflowedContentRenderer
IRendereran 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
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
DrawContextthe context (canvas, document, etc) of this drawing operation.
GetNextRenderer()
public override IRenderer GetNextRenderer()
Returns
Layout(LayoutContext)
public override LayoutResult Layout(LayoutContext layoutContext)
Parameters
layoutContext
LayoutContext
Returns
LayoutInColumns(LayoutContext, Rectangle)
Layouts multicol in the passed area.
protected virtual MulticolRenderer.MulticolLayoutResult LayoutInColumns(LayoutContext layoutContext, Rectangle actualBBox)
Parameters
layoutContext
LayoutContextthe layout context
actualBBox
Rectanglethe area to layout multicol on
Returns
SetHeightCalculator(ColumnHeightCalculator)
Sets the height calculator to be used by this renderer.
public void SetHeightCalculator(MulticolRenderer.ColumnHeightCalculator heightCalculator)
Parameters
heightCalculator
MulticolRenderer.ColumnHeightCalculatorthe height calculator to be used by this renderer.