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>
using DocumentFormat.OpenXml.Wordprocessing;
var run = new Run(
new RunProperties(new Shadow()),
new Text("Shadow text")
);
Notes
w:shadowis a legacy text effect inherited from older Word binary formats. Modern OOXML documents can use DrawingML text effects for more precise shadow control.w:shadowcannot be combined withw:embossorw:imprint— only one 3D text effect applies at a time.