w:i (Italic)
Applies italic formatting to the text of the run.
Parent elements
Description
w:i applies italic formatting to all text in the run. It is an on/off toggle property defined in ECMA-376 Part 1 §17.3.2.16.
When present without a w:val attribute, or with w:val="true", the run is italicised. Setting w:val="false" cancels italic, overriding any italic inherited from a parent style. The complex-script equivalent is w:iCs.
Attributes
| Attribute | Type | Possible Values | Description |
|---|---|---|---|
w:val |
ST_OnOff |
true, 1, on (italic on) / false, 0, off (italic off). Omitting the attribute is equivalent to true. |
Toggles italic on or off. |
Examples
<w:r>
<w:rPr>
<w:i/>
</w:rPr>
<w:t>Italic text</w:t>
</w:r>
new Run(
new RunProperties(new Italic()),
new Text("Italic text"));
Notes
- Toggle property:
<w:i w:val="false"/>cancels italic inherited from a parent style. - The complex-script counterpart is
w:iCs.