w:numPr (Numbering Properties)
Specifies that the paragraph belongs to a list, referencing a numbering definition and level.
Description
w:numPr is the numbering properties container within w:pPr, linking a paragraph to a list definition and specifying its list level. It is defined in ECMA-376 Part 1 §17.3.1.19.
It contains two child elements: w:ilvl (the zero-based level index) and w:numId (the ID of the w:num instance). Setting w:numId to 0 removes any list formatting from the paragraph.
Attributes
| Attribute | Type | Possible Values | Description |
|---|---|---|---|
| (none) | — | — | Properties are expressed via w:ilvl and w:numId child elements. |
Examples
<!-- Level 0 of list instance 1 -->
<w:pPr>
<w:numPr>
<w:ilvl w:val="0"/>
<w:numId w:val="1"/>
</w:numPr>
</w:pPr>
new ParagraphProperties(
new NumberingProperties(
new NumberingLevelReference { Val = 0 },
new NumberingId { Val = 1 }));