w:mirrorIndents (Mirror Indents)
Swaps the left and right indents on even-numbered pages so that inside/outside margins mirror each other on double-sided documents.
Parent elements
Description
w:mirrorIndents is a toggle property that, when active, causes the w:left and w:right indent values to be swapped on even-numbered pages. This mirrors the indent pattern for double-sided (duplex) printing, ensuring that the “inner” margin is consistent regardless of whether a page is odd or even.
It is defined in ECMA-376 Part 1 §17.3.1.18.
Attributes
| Attribute | Type | Possible Values | Description |
|---|---|---|---|
w:val |
ST_OnOff |
true, false, 1, 0, on, off |
Enables indent mirroring on even pages. Omit to inherit. |
Examples
<!-- Paragraph with mirrored indents for duplex printing -->
<w:p>
<w:pPr>
<w:ind w:left="720" w:right="360"/>
<w:mirrorIndents/>
</w:pPr>
<w:r><w:t>This indent mirrors on even pages.</w:t></w:r>
</w:p>
using DocumentFormat.OpenXml.Wordprocessing;
var para = new Paragraph(
new ParagraphProperties(
new Indentation { Left = "720", Right = "360" },
new MirrorIndents()
),
new Run(new Text("This indent mirrors on even pages."))
);
Notes
- Complementary to the document-level
w:mirrorMarginssetting inw:settings, which mirrors page margins rather than paragraph indents. - On odd pages the
w:left/w:rightindents apply as declared; on even pages they are swapped.