w:endnotePr (Endnote Properties)
Specifies document-level or section-level properties for endnotes, including position, number format, starting number, and restart behavior.
Parent elements
Child elements
Description
w:endnotePr configures how endnotes behave for the entire document (when in w:settings) or for a specific section (when in w:sectPr). It is the endnote counterpart to w:footnotePr.
It is defined in ECMA-376 Part 1 §17.11.4 (section) and §17.11.3 (document settings).
Child Elements
| Element | Description |
|---|---|
w:pos |
Endnote position: docEnd (end of document, default) or sectEnd (end of section). |
w:numFmt |
Numbering format (e.g. decimal, lowerRoman, lowerLetter). |
w:numStart |
Starting number for endnote auto-numbering. |
w:numRestart |
When numbering restarts: continuous or eachSect. |
w:endnote |
References specific separator endnote IDs for this section. |
Examples
<!-- Endnotes at end of each section, roman numerals -->
<w:settings>
<w:endnotePr>
<w:pos w:val="sectEnd"/>
<w:numFmt w:val="lowerRoman"/>
<w:numStart w:val="1"/>
<w:numRestart w:val="eachSect"/>
</w:endnotePr>
</w:settings>
using DocumentFormat.OpenXml.Wordprocessing;
var endnotePr = new EndnoteDocumentWideProperties(
new EndnotePosition { Val = EndnotePositionValues.SectionEnd },
new NumberingFormat { Val = NumberFormatValues.LowerRoman },
new NumberingStart { Val = 1 },
new NumberingRestart { Val = RestartNumberValues.EachSection }
);
Notes
w:pos="docEnd"(default) collects all endnotes at the very end of the document.w:pos="sectEnd"places endnotes at the end of each section — useful for book-style documents.- Section-level
w:endnotePr(inw:sectPr) overrides document-level settings for that section.