w:lvlText (Level Text Template)
Defines the text pattern for the numbering label, e.g. '%1.' where %1 is replaced by the current level's number.
Parent elements
Description
w:lvlText defines the label text pattern for a list level. It is defined in ECMA-376 Part 1 §17.9.11.
The w:val string can contain literal text and level-number placeholders in the form %n, where n is a 1-based level index. For example, %1.%2. would render as 1.1. for the second level of an outline. For bullet lists, w:val typically contains the bullet character directly.
Attributes
| Attribute | Type | Possible Values | Description |
|---|---|---|---|
w:val |
ST_String (nullable) |
Any text including %1–%9 placeholders. null / omitted means no label. |
Label text template. |
Examples
<!-- "1." for level 1, "1.1." for level 2 -->
<w:lvlText w:val="%1."/>
<!-- bullet -->
<w:lvlText w:val="•"/>
new LevelText { Val = "%1." };
new LevelText { Val = "•" };