w:shadow (Shadow Text Effect)

Applies a drop-shadow effect behind the characters of a run.

Parent elements

Description

w:shadow is a toggle property that applies a drop-shadow behind the text characters in a run. The shadow offset and color are processor-defined. In most implementations the shadow appears below and to the right of the text.

It is defined in ECMA-376 Part 1 §17.3.2.31.

Attributes

Attribute Type Possible Values Description
w:val ST_OnOff true, false, 1, 0, on, off Enables the shadow effect. Omit to inherit.

Examples

<w:r>
  <w:rPr>
    <w:shadow/>
  </w:rPr>
  <w:t>Shadow text</w:t>
</w:r>

Notes

  • w:shadow is a legacy text effect inherited from older Word binary formats. Modern OOXML documents can use DrawingML text effects for more precise shadow control.
  • w:shadow cannot be combined with w:emboss or w:imprint — only one 3D text effect applies at a time.