[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

ST_HexColorRGB (Hexadecimal Color Value)

This simple type specifies that its contents shall contain a color value in RRGGBB hexadecimal format. This specifies that each of the red, green, and blue color values form 0-255 will be encoded as a two-digit hexadecimal number.

[Example: Consider a color defined as follows:

Red:   122

Green:   23

Blue:   209

The resulting RRGGBB value would be 7A17D1, as each color is transformed into its hexadecimal equivalent. end example]

This simple type's contents are a restriction of the XML Schema hexBinary datatype.

This simple type also specifies the following restrictions:

This simple type's contents must have a length of exactly 3 characters.

Referenced By

ST_HexColor2.18.43)

The following XML Schema fragment defines the contents of this simple type:

<simpleType name="ST_HexColorRGB">

   <restriction base="xsd:hexBinary">

   <length value="3" fixed="true"/>

   </restriction>

</simpleType>