JSON API - createListStyle
- 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
createListStyle
PREMIUM
TRIAL / ADVANCED
Creates a list style.
Note
You are reading the JSON API documentation. For the PHP API method please go to createListStyle.
JSON data
| Key | Description |
|---|---|
| name | The name of the list style. |
| type |
|
| align | "left", "center", "right". |
| bold | If true use bold characters. |
| color | Hexadecimal color value: "FF0000", "000000"... |
| font | Font family. This allows the customization of bullets. |
| fontSize | Font size in points. |
| format | The default one is "%1." for first level, "%2." for second level and so long so forth. Bullets don't use a string format value but symbols. |
| hanging | The extra space for the numbering, should be big enough to accommodate it, the default is 360. |
| image |
Use an image as bullets.
|
| italic | If true use italics. |
| left | The left indent. The default value is 720 times the list level. |
| numberingStyle | Numbering style. |
| position | Position value. |
| start | Start value. The default value is 1. |
| suff | Level suffix: tab, space or nothing. |
| typeCustom | Custom number format: "001, 002, 003, ..."... Requires setting the type option (decimal as default). |
| underline | Underlines. Possible values are: single, words, double, dotted, dash and wave. |
Code samples
Example #1
Example #2
Release notes
- phpdocx 18.0:
- new action.
