17.3.2.32 shd

Like paragraph shading, this element specifies the shading applied to the contents of the run.

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 not present, the default value is to leave the formatting applied at previous level in the style hierarchy. If this element is never applied in the style hierarchy, then run shading shall not be applied to the contents of this run.

[Example: Consider a run which must have a background consisting of a theme color accent6 with a theme color text2 overlaid using a 20% fill pattern. This requirement is specified using the following WordprocessingML:

<w:pPr>
  <w:shd w:val="pct20" w:themeColor="text2" w:themeFill="accent6" />
</w:pPr>

The resulting run uses the background color accent6 under the foreground pattern color text2 as specified by the pct20 pattern mask. end example]

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

Last updated on