<background>
(Document Background)
This element specifies the background information for this document. This background shall be displayed on all pages of the document, behind all other document content.
The child elements of the <background>
element are in the Vector Markup Language (VML) namespace, which allows any valid VML effect to be applied to the document's background.
For solid color fill backgrounds, however, the attributes on this element allow for the specification of use of any valid RGB or theme color value (the latter a reference to the document's themes part).
This background would require the following WordprocessingML markup:
<w:background w:color="9BBB59" w:themeColor="accent3"> <v:background id="_x0000_s1025" o:bwmode="white" fillcolor="#9bbb59 [3206]" o:targetscreensize="800,600"> <v:fill color2="fill darken(118)" method="linear sigma" focus="100%" type="gradientRadial"> <o:fill v:ext="view" type="gradientCenter" /> </v:fill> </v:background> </w:background>
The resulting background consists of a single color fill of the accent3
theme color from the @themeColor
attribute, layered under a gradientCenter
fill from the @fill
attribute. ]
Child Elements |
Subclause |
---|---|
Any element from the urn:schemas-microsoft-com:vml namespace |
§6.1 |
Any element from the urn:schemas-microsoft-com:office:office namespace |
§6.2 |
Attributes |
Description |
---|---|
|
Specifies the color for the background of the document. This color may either be presented as a hex value (in RRGGBB format), or If the background specifies the use of a theme color via the <w:background … w:color="2C34FF"/> The background color shall therefore be the color with an RGB value of 44,52,255 (the decimal decoding of the hex value above). ] The possible values for this attribute are defined by the ST_HexColor simple type (§2.18.43). |
|
Specifies a theme color to be applied to the current background. The specified theme color is a reference to one of the predefined theme colors, located in the document's Theme part, which allows color information to be set centrally in the document. If the color attribute is specified, its value shall be ignored in favor of the color resulting from the use of this attribute with any appropriate themeTint and themeShade attribute value calculations applied. <w:background w:color="FFA8A0" w:themeColor="accent5" /> The background has a The possible values for this attribute are defined by the ST_ThemeColor simple type (§2.18.104). |
|
Specifies the shade value applied to the supplied theme color (if any) for this background. If the The The resulting Given an RGB color defined as three hex values in RRGGBB format, the shade is applied as follows:
The equivalent HSL color value would be. Applying the shade formula with a shade percentage of 75% to the luminance, we get: Taking the resulting HSL color value of and converting back to RGB, we get This transformed value can be seen in the resulting background's <w:background w:color="943634" w:themeColor="accent2" w:themeShade="BF"/> The possible values for this attribute are defined by the ST_UcharHexNumber simple type (§2.18.106). |
|
Specifies the tint value applied to the supplied theme color (if any) for this background. If the The The resulting Given an RGB color defined as three hex values in RRGGBB format, the shade is applied as follows:
The equivalent HSL color value would be. Applying the tint formula with a tint percentage of 60% to the luminance, we get: Taking the resulting HSL color value of and converting back to RGB, we get This transformed value can be seen in the resulting background's <w:background w:color="95B3D7" w:themeColor="accent2" w:themeTint="99"/> The possible values for this attribute are defined by the ST_UcharHexNumber simple type (§2.18.106). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Background">
<complexContent>
<extension base="CT_PictureBase">
<attribute name="color" type="ST_HexColor" use="optional"/>
<attribute name="themeColor" type="ST_ThemeColor" use="optional"/>
<attribute name="themeTint" type="ST_UcharHexNumber" use="optional"/>
<attribute name="themeShade" type="ST_UcharHexNumber" use="optional"/>
</extension>
</complexContent>
</complexType>