# 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
- AddSearchpath
- AtPageCreation
- AtPageShipout
- AttachFile
- Attribute
- B
- Barcode
- Bold
- BoldItalic
- Bookmark
- Box
- Br
- Case
- Circle
- Color
- Column
- Columns
- Compatibility
- Contents
- Copy-of
- DefineColor
- DefineFontalias
- DefineFontfamily
- DefineTextformat
- Element
- Fontface
- ForAll
- Frame
- Grid
- Group
- Groupcontents
- HSpace
- Hyphenation
- I
- Image
- Include
- Initial
- 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
- SetGrid
- SetVariable
- SortSequence
- Span
- Stylesheet
- Sub
- Sup
- Switch
- Table
- Tablefoot
- Tablehead
- Tablerule
- Td
- Text
- Textblock
- Tr
- Trace
- Transformation
- U
- URL
- Ul
- Until
- VSpace
- Value
- While

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