# Elementname: `SetGrid`

## Description

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

Allowed attributes: dx, dy, height, nx, ny, width

Child elements: (none)

Parent elements: Case, ForAll, Include, Layout, Loop, Otherwise, 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"/>

## See also

Grid

# Commands

- A
- Action
- AddToList
- AtPageCreation
- AtPageShipout
- Attribute
- B
- Barcode
- Bold
- BoldItalic
- Bookmark
- Box
- Br
- Case
- Circle
- Color
- Column
- Columns
- Contents
- Copy-of
- DefineColor
- DefineFontfamily
- DefineTextformat
- Element
- EmptyLine
- Fontface
- ForAll
- Frame
- Grid
- Group
- HSpace
- Hyphenation
- I
- Image
- Include
- InsertPages
- Italic
- Layout
- Li
- LoadDataset
- LoadFontfile
- Loop
- Makeindex
- Margin
- Mark
- Message
- NewPage
- NextFrame
- NextRow
- NoBreak
- Ol
- Options
- Otherwise
- Output
- Overlay
- PDFOptions
- Pageformat
- Pagetype
- Paragraph
- PlaceObject
- Position
- PositioningArea
- PositioningFrame
- ProcessNode
- Record
- Regular
- Rule
- SaveDataset
- SavePages
- Sequence
- SetGrid
- SetVariable
- SortSequence
- Stylesheet
- Sub
- Sup
- Switch
- Table
- Tablefoot
- Tablehead
- Tablerule
- Td
- Text
- Textblock
- Tr
- Transformation
- U
- URL
- Ul
- Until
- VSpace
- Value
- While

Version: 2.6.1 | Start page | Command reference | Other language: German