# Elementname: `Color`

## Description

Switch to another text color

Allowed attributes: name

Child elements: A, Action, B, Br, Color, Fontface, ForAll, Frame, HSpace, I, Image, Loop, NoBreak, Sub, Sup, Switch, U, URL, Value

Parent elements: B, Color, Fontface, I, NoBreak, Paragraph, U

### Attributes

name (text)

  The name of the color. Must be pre-defined with DefineColor.

## Example

    <?xml version="1.0" encoding="UTF-8"?>
    <Layout
      xmlns="urn:speedata.de:2009/publisher/en">

      <DefineColor name="red" value="#f00"/>
      <Record element="data">
        <PlaceObject>
          <Textblock>
            <Paragraph>
              <Value>Hello </Value><Color name="red"><Value>bar</Value></Color>
            </Paragraph>
          </Textblock>
        </PlaceObject>
      </Record>
    </Layout>

## See also

DefineColor

# 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