docx.add_list_item
docx.add_list_item(doc, text, [kind="bullet"], [level=0], [restart=false])
Input: doc, text, kind, level, restart · Output: no output
What it is
Appends a bulleted (kind="bullet") or numbered (kind="number") list paragraph at nesting level 0-8, creating the document's numbering definitions when it has none. Consecutive numbered items continue one list; restart=true starts again from 1. Numbered levels go 1. / a. / i.; bullets •, ◦, ▪. *Added in v0.4.5*
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
docx.add_list_item(doc, text, [kind="bullet"], [level=0], [restart=false]) | doc —not documented yettext —not documented yetkind number, optional (default "bullet")Appends a bulleted (kind="bullet") or numbered (kind="number") list paragraph at nesting level 0-8, creating the document's numbering definitions when it has none.level number, optional (default 0)Appends a bulleted (kind="bullet") or numbered (kind="number") list paragraph at nesting level 0-8, creating the document's numbering definitions when it has none.restart optional (default false)restart=true starts again from 1. | not documented yet | Numbered levels go 1. / a. / i.; bullets •, ◦, ▪. *Added in v0.4.5*. |
Examples
No documentation example calls this form yet. The File I/O chapter is where one belongs.