17.4.32 shd

This element specifies the shading which shall be applied to the extents of the current table cell. Similarly to paragraph shading, this shading shall be applied to the contents of the cell up to the cell borders, regardless of the presence of text.

This shading consists of three components:

  • Background Color
  • (optional) Pattern
  • (optional) Pattern Color

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 or table-level exception cell shading settings (17.4.30;17.4.31) for the current table.

[Example: Consider a table in which the first

cell in the first row

has cell-level red shading, as follows:

R1C1

R1C2

R2C1

R2C2

This cell shading would be specified using the following WordprocessingML:

<w:tc>
  <w:tcPr>
    <w:shd w:val="clear" w:color="auto" w:fill="FF0000" />
  </w:tcPr>
</w:tc>

The shd element specifies cell shading with a clear pattern using a background color of FF0000 (red). end example]

This element’s content model is defined by the common shading properties definition in 17.3.5.

Last updated on