# Elementname: `Column`

## Description

Set the properties of a column in the table.

Allowed attributes: align, backgroundcolor, valign, width

Child elements: (none)

Parent elements: Case, Columns, ForAll, Loop, Otherwise, Until, While

### Attributes

align (optional)

  The horizontal alignment of the table cells in this column. Can be overridden in a cell (Td).

  left: | The table cells are left aligned.
  center: | The table cells are horizontally centerd.
  right: | The table cells are right aligned.

backgroundcolor (text, optional)

  All cells in this column have this background color.

valign (optional)

  The vertical alignment of the cells in this column. Can be overridden in a cell (Td).

  top: | The table cells are top aligned.
  middle: | The table cells are vertically centered.
  bottom: | The table cells are aligned at the bottom.

width (Number, length or *-numbers, optional)

  Width of the column. Argument can be a number (in grid cells) a length (e.g. 2cm) or a *-number (e.g. 4*).

## Example

    <Table>
      <Columns>
        <Column width="14mm" />
        <Column width="2" />
        <Column width="1*" align="right" valign="top" />
        <Column width="5*" />
        <Column width="5mm" backgroundcolor="gray" />
      </Columns>
    </Table>

This defines a table with five columns. The first column has a width of 14mm, the last of 5mm, the second column is two units wide (grid cells). The third and fourth column have a width of 1/6 and 5/6 of the remaining width.

## See also

Table Columns

# 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