Word.List
Word.List is an object type of the Word module (Office.word(iframe)). 2 methods.
Remarks
- Module: Word ·
Office.word(iframe)· namespaceWord - Obtained from:
Paragraph.getList() - Every method returns a
Promise; signatures use TypeScript notation.
Methods
| Method | Description |
|---|---|
restartNumbering() | Restarts numbering from this paragraph. |
setLevel(value) | Changes the list level of this paragraph. |
Method details
restartNumbering()
Restarts numbering from this paragraph.
restartNumbering(): Promise<void>;
Returns
none
setLevel(value)
Changes the list level of this paragraph.
Moves one level at a time with IndentType, or sets the target level with a 0-based number.
Even on the first item of the list, only this paragraph's level changes. The change can be undone in one step.
If the given level is deeper than the list supports, moves to the last level of that list.
To remove the list, use clearList() on the paragraph or range.
setLevel(value: IndentType | number): Promise<void>;
Parameters
| Name | Type | Description |
|---|---|---|
value | IndentType | number | "indent" (one level in) | "outdent" (one level out) | target level (integer 0~8) |
Returns
none