Version 5.9.3

# `SetGrid`

Set size of the grid cells. All objects are placed in the grid.

## Child elements

(none)

## Parent elements

`AtPageCreation`, `AtPageShipout`, `Case`, `Contents`, `ForAll`, `Include`, `Layout`, `Loop`, `Otherwise`, `Record`, `SavePages`, `Section`, `Until`, `While`

## Attributes

`dx` (optional, since version 2.3.11)
  Distance between two grid cells (horizontal)
`dy` (optional, since version 2.3.46)
  Distance between two grid cells (horizontal)
`height` (length, optional)
  The height of a grid cell. Use either height or ny, but not both.
`nx` (number, optional)
  Specify the number of grid cells in horizontal direction. Use either nx or width, not both.
`ny` (number, optional)
  Set the number of grid cells in vertical direction. Give ny or height, but not both.
`width` (length, optional)
  The width of a grid cell. Use either width or nx, not both.

## Example

    <SetGrid width="4mm" height="14pt"/>

#### On this page