JSON API - addList
- addBarcode
- addBookmark
- addBreak
- addCaption
- addChart
- addComment
- addCrossReference
- addDateAndHour
- addDropCap
- addEndnote
- addExternalFile
- addFootnote
- addFormElement
- addHeading
- addImage
- addLink
- addList
- addMathEquation
- addMergeField
- addPageNumber
- addRuby
- addSimpleField
- addStructuredDocumentTag
- addSVG
- addTab
- addTable
- addTableContents
- addTableFigures
- addText
- addTextBox
- addWordML
- addWordFragment
- embedHTML
- addBackgroundImage
- addFooter
- addFooterSection
- addHeader
- addHeaderSection
- addLineNumbering
- addPageBorders
- addProperties
- addSection
- createCharacterStyle
- createListStyle
- createParagraphStyle
- createTableStyle
- docxSettings
- embedFont
- modifyPageLayout
- removeFooters
- removeHeaders
- setBackgroundColor
- setCompatibilityMode
- setDefaultFont
- setDocumentDefaultStyles
- setLanguage
- setMarkAsFinal
- setRTL
- clearBlocks
- cloneBlock
- deleteBlock
- getTemplateVariables
- getTemplateVariablesType
- modifyInputFields
- modifyMergeFields
- processTemplate
- removeTemplateVariable
- removeTemplateVariableImage
- replaceBlock
- replaceListVariable
- replacePlaceholderImage
- replaceTableVariable
- replaceVariableByExternalFile
- replaceVariableByHTML
- replaceVariableByText
- replaceVariableByWordFragment
- replaceVariableByWordML
- setTemplateSymbol
- setTemplateBlockSymbol
- tickCheckboxes
addList
PREMIUM
TRIAL / ADVANCED
Inserts a list.
Note
You are reading the JSON API documentation. For the PHP API method please go to addList.
JSON data
| Key | Description |
|---|---|
| values | Values to be added to the list. |
| styleType | 0 (clear), 1 (inordinate) (default), 2 (numerical) or the name of the created list. |
| bold | If true the text will be shown in bold characters. |
| caps | If true displays text in capital letters. |
| color | Hexadecimal color value: 'FF0000', '000000'... |
| font | Font family: 'Arial', Calibri'... |
| fontSize | Font size in points. |
| highlightColor | Highlights the run of text. The available colors are: black, blue, cyan, green, magenta, red, yellow, white, darkBlue, darkCyan, darkGreen, darkMagenta, darkRed, darkYellow, darkGray, lightGray, none. |
| italic | If true displays the text in italics. |
| numId | Sets a numId value. Useful to generate a continue numbering. |
| outlineLvl | Heading level (1-9). |
| pStyle | Paragraph style to be used. |
| rtl | Sets to true for right to left languages like Hebrew or Arabic. |
| smallCaps | If true displays text in small capital letters. |
| underline | Underlines text. Possible values are: single, words, double, dotted, dash and wave. |
| useWordFragmentStyles | Use WordFragment paragraph styles. |
Code samples
Example #1
Example #2
Example #3
Release notes
- phpdocx 18.0:
- new action.
