grid method

grid(columns, horizontal_gap, vertical_gap)

Creates a layout in which pages are rendered left-to-right, top-to-bottom, in a grid with the specified number of columns.

def grid(self, columns: int, horizontal_gap: float, vertical_gap: float):
    ...
ParameterTypeDescription
columnsintThe number of columns in the layout. Must be greater than zero.
horizontal_gapfloatThe horizontal gap between columns in points.
vertical_gapfloatThe vertical gap between rows in points.

Exceptions

exceptioncondition
RuntimeError (Proxy error(ArgumentOutOfRangeException))Thrown if columns is less than or equal to zero.

See Also