Switch to another text color

Child elements

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

Parent elements

A, B, Case, Color, Fontface, ForAll, I, Li, Loop, NoBreak, Otherwise, Paragraph, Span, U, URL, Until, While


name (text)

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


<?xml version="1.0" encoding="UTF-8"?>

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

See also

The section text formatting, the section about colors and the command <DefineColor>.