# Elementname: `Rule`

CSS name: rule

## Description

Draw a horizontal or vertical rule in the grid.

Allowed attributes: color, dashed, direction, length, rulewidth

Child elements: (none)

Parent elements: Frame, Overlay, PlaceObject, Position, Transformation

### Attributes

color (text, optional, CSS property: background-color)

  The color of the rule. Defaults to black.

dashed (optional, since version 2.3.50)

  Use a dashed rule instead of a solid rule.

  yes: | Draw a dashed rule.
  no: | Draw a solid rule.

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, CSS property: height)

  The rule thickness 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
- 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