Table of Contents

Class GridComposer

Namespace
Rustaveli.Pdf
Assembly
Rustaveli.Pdf.dll

Adds the cells of a grid: rows divided into equal columns, twelve unless set, with each cell spanning one or more of them and the cells filling each row in turn.

public sealed class GridComposer
Inheritance
GridComposer
Inherited Members

Remarks

A cell goes into the row being filled if the columns left in it are enough for its span, and starts the next row if they are not. Because every row is divided the same way, column edges line up from row to row whatever the cells span. Each row is as tall as its tallest cell, and every cell in it is drawn that tall. Rows run on from page to page as the items of a stack do, and read right to left, mirrored, where the reading direction says so.

Methods

Cell(int)

Adds a cell spanning span columns, and returns the frame its content goes into.

public IFrame Cell(int span = 1)

Parameters

span int

Returns

IFrame

Centered()

Sets a row its cells do not fill in the middle, with the columns left over shared either side.

public void Centered()

Columns(int)

Sets how many equal columns each row is divided into; twelve unless set. The number set last applies, whether before the cells are added or after.

public void Columns(int count)

Parameters

count int

FlushLeft()

Sets a row its cells do not fill against the start of the row. This is how rows are set unless told otherwise.

public void FlushLeft()

FlushRight()

Sets a row its cells do not fill against the end of the row.

public void FlushRight()

Gutter(float)

Sets the room between neighbouring columns, in points; none unless set.

public void Gutter(float value)

Parameters

value float

SpaceBetweenRows(float)

Sets the room between one row and the next, in points; none unless set.

public void SpaceBetweenRows(float value)

Parameters

value float