DocumentID: ECMA-376/Part4/2.4.34 Title: ECMA-376, Part4: 2.4.34 shd (Table Shading Exception) Extracted-From: ECMA-376 Office Open XML File Formats, 1st Edition / December 2006 Warning: Coverted to HTML format by a script known to have bugs
This element specifies the shading which shall be applied to all cells in the current row as part of a set of table-level property exceptions. Similarly to paragraph shading, this shading shall be applied to the contents of the tab up to the table borders, regardless of the presence of text - unlike cell shading, table shading shall include any cell padding. This property shall be superseded by any cell-level shading on any cell in this row (§2.4.33).
This shading consists of three components:
The resulting shading is applied by setting the background color behind the paragraph, then applying the pattern color using the mask supplied by the pattern over that background.
If this element is omitted, then the cell shading shall be determined by the table-level cell shading settings (§2.4.35) for the current table.
[Example: Consider a table in which the final two rows have a set of table-level property exceptions giving them theme color shading in the background2 theme color, as follows:
This table-level shading exception would be specified using the following WordprocessingML:
<w:tblPrEx>
<w:jc w:val="left" />
<w:shd w:val="clear" w:color="auto" w:fill="EEECE1" w:themeFill="background2" />
</w:tblPrEx>
The shd element specifies cell shading with a clear pattern using a background theme color of background2. end example]
|
Parent Elements |
|
Attributes |
Description |
|---|---|
|
color (Shading Pattern Color) |
Specifies the color used for any foreground pattern specified for this shading using the This color may either be presented as a hex value (in RRGGBB format), or If the shading style (the If this attribute is omitted, then its value shall be assumed to be auto. [Example: Consider a shading of type pct20 with a foreground color value of auto, as follows:
The foreground color for this shading pattern therefore may be automatically be modified by a consumer as appropriate, for example, in order to ensure that the shading color can be distinguished against the page's background color. end example] The possible values for this attribute are defined by the ST_HexColor simple type (§2.18.43). |
|
fill (Shading Background Color) |
Specifies the color used for the background for this shading. This color may either be presented as a hex value (in RRGGBB format), or If this attribute is omitted, then its value shall be assumed to be auto. [Example: Consider a shading using a background color of hex value C3D69B, using the following WordprocessingML:
The background color for this shading therefore will be a color with a hex value of C3D69B. end example] If the shading specifies the use of a theme color via the The possible values for this attribute are defined by the ST_HexColor simple type (§2.18.43). |
|
themeColor (Shading Pattern Theme Color) |
Specifies a theme color which should be applied to any foreground pattern specified for this shading using the The specified theme color is a reference to one of the predefined theme colors, located in the document's themes part, which allows for color information to be set centrally in the document. If this element is omitted, then no theme color is applied, and the [Example: Consider a paragraph which shall have a background consisting of a theme color accent3 with a theme color accent6 overlaid using a 20% fill pattern. This requirement is specified using the following WordprocessingML:
The resulting paragraph will use the foreground pattern color accent6 in the region specified by the pct20 pattern mask. end example] The possible values for this attribute are defined by the ST_ThemeColor simple type (§2.18.104). |
|
themeFill (Shading Background Theme Color) |
Specifies a theme color which should be applied to the background for this shading. The specified theme color is a reference to one of the predefined theme colors, located in the document's themes part, which allows for color information to be set centrally in the document. If this element is omitted, then no theme color is applied, and the [Example: Consider a paragraph which shall have a background consisting of a theme color
The resulting shading will use the background color specified by the The possible values for this attribute are defined by the ST_ThemeColor simple type (§2.18.104). |
|
themeFillShade (Shading Background Theme Color Shade) |
Specifies the shade value applied to the supplied theme color (if any) for this shading color. If the The [Example: Consider a shade of 40% applied to a background shading color in a document. This shade is calculated as follows: (missing picture formula-2.4.34-1) The resulting Given an RGB color defined as three hex values in RRGGBB format, the shade is applied as follows:
(missing picture formula-2.4.34-2) [Example: Consider a document with a background using the accent2 theme color, whose RGB value (in RRGGBB hex format) is C0504D. The equivalent HSL color value would be. Applying the shade formula with a shade percentage of 75% to the luminance, we get: (missing picture formula-2.4.34-3) Taking the resulting HSL color value of and converting back to RGB, we get 943634. This transformed value can be seen in the resulting shading's
end example] The possible values for this attribute are defined by the ST_UcharHexNumber simple type (§2.18.106). |
|
themeFillTint (Shading Background Theme Color Tint) |
Specifies the tint value applied to the supplied theme color (if any) for this shading instance. If the The [Example: Consider a tint of 60% applied to a border in a document. This tint is calculated as follows: (missing picture formula-2.4.34-4) The resulting Given an RGB color defined as three hex values in RRGGBB format, the shade is applied as follows:
(missing picture formula-2.4.34-5) [Example: Consider a document with a background using the accent2 theme color, whose RGB value (in RRGGBB hex format) is 4F81BD. The equivalent HSL color value would be. Applying the tint formula with a tint percentage of 60% to the luminance, we get: (missing picture formula-2.4.34-6) Taking the resulting HSL color value of and converting back to RGB, we get 95B3D7. This transformed value can be seen in the resulting shading's
end example] The possible values for this attribute are defined by the ST_UcharHexNumber simple type (§2.18.106). |
|
themeShade (Shading Pattern Theme Color Shade) |
Specifies the shade value applied to the supplied theme color (if any) for this shading color. If the The [Example: Consider a shade of 40% applied to a background shading color in a document. This shade is calculated as follows: (missing picture formula-2.4.34-7) Te resulting Given an RGB color defined as three hex values in RRGGBB format, the shade is applied as follows:
(missing picture formula-2.4.34-8) [Example: Consider a document with a background using the accent2 theme color, whose RGB value (in RRGGBB hex format) is C0504D. The equivalent HSL color value would be. Applying the shade formula with a shade percentage of 75% to the luminance, we get: (missing picture formula-2.4.34-9) Taking the resulting HSL color value of and converting back to RGB, we get 943634. This transformed value can be seen in the resulting background's
end example] The possible values for this attribute are defined by the ST_UcharHexNumber simple type (§2.18.106). |
|
themeTint (Shading Pattern Theme Color Tint) |
Specifies the tint value applied to the supplied theme color (if any) for this shading instance. If the The [Example: Consider a tint of 60% applied to a border in a document. This tint is calculated as follows: (missing picture formula-2.4.34-10) The resulting Given an RGB color defined as three hex values in RRGGBB format, the shade is applied as follows:
(missing picture formula-2.4.34-11) [Example: Consider a document with a background using the accent2 theme color, whose RGB value (in RRGGBB hex format) is 4F81BD. The equivalent HSL color value would be. Applying the tint formula with a tint percentage of 60% to the luminance, we get: (missing picture formula-2.4.34-12) Taking the resulting HSL color value of and converting back to RGB, we get 95B3D7. This transformed value can be seen in the resulting shading's
end example] The possible values for this attribute are defined by the ST_UcharHexNumber simple type (§2.18.106). |
|
val (Shading Pattern) |
Specifies the pattern which shall be used to lay the pattern color over the background color for this paragraph shading. This pattern consists of a mask which is applied over the background shading color to get the locations where the pattern color should be shown. Each of these possible masks are shown in the simple type values referenced below. [Example: Consider a shaded paragraph which uses a 10 percent foreground fill, resulting in the following WordprocessingML:
This shading The possible values for this attribute are defined by the ST_Shd simple type (§2.18.85). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Shd">
<attribute name="val" type="ST_Shd" use="required"/>
<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"/>
<attribute name="fill" type="ST_HexColor" use="optional"/>
<attribute name="themeFill" type="ST_ThemeColor" use="optional"/>
<attribute name="themeFillTint" type="ST_UcharHexNumber" use="optional"/>
<attribute name="themeFillShade" type="ST_UcharHexNumber" use="optional"/>
</complexType>