# Elementname: `Rule`

## Description

Draw a horizontal or vertical rule in the grid.

Allowed attributes: color, direction, length, rulewidth

Child elements: (none)

Parent elements: Frame, PlaceObject, Transformation

### Attributes

color (text, optional)

  The color of the rule. Defaults to black.

direction ()

  The direction of the rule.

  horizontal: | Horizontal rule
  vertical: | Vertical rule

length (number or length)

  The length of the rule in grid cells or as an absolute length.

rulewidth (number or length, optional)

  The rule thicknes given in grid cells or as a length.

## Example

    <Record element="data">
      <PlaceObject>
        <Rule direction="horizontal" length="10" rulewidth="3"/>
      </PlaceObject>
    </Record>

## See also

PlaceObject

# Commands

- A
- Action
- AddToList
- AtPageCreation
- AtPageShipout
- Attribute
- B
- Barcode
- Bold
- BoldItalic
- Bookmark
- Box
- Br
- Case
- 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
- Ol
- Options
- Otherwise
- Output
- Pageformat
- Pagetype
- Paragraph
- PlaceObject
- 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.2.0 | Start page | Command reference | Other language: German