XML API - pdx:createListStyle
- addBackgroundImage
- addFooter
- addHeader
- addLineNumbering
- addMacroFromDoc
- addPageBorders
- addProperties
- addSection
- createCharacterStyle
- createListStyle
- createParagraphStyle
- docxSettings
- importHeadersAndFooters
- importListStyle
- importStyles
- modifyPageLayout
- parseStyles
- removeFooters
- removeHeaders
- setBackgroundColor
- setDefaultFont
- setDocumentDefaultStyles
- setEncodeUTF8
- setLanguage
- setMarkAsFinal
- addBookmark
- addBreak
- addChart
- addComment
- addCrossReference
- addDateAndHour
- addEndnote
- addExternalFile
- addFootnote
- addFormElement
- addHeading
- addImage
- addLink
- addList
- addMathEquation
- addMergeField
- addOnlineVideo
- addPageNumber
- addShape
- addSimpleField
- addStructuredDocumentTag
- addTable
- addTableContents
- addTableFigures
- addText
- addTextBox
- addWordML
- embedHTML
- clearBlocks
- deleteBlock
- modifyInputFields
- processTemplate
- rawSearchAndReplace
- removeTemplateVariable
- replaceListVariable
- replacePlaceholderImage
- replaceTableVariable
- replaceVariableByExternalFile
- replaceVariableByHtml
- replaceVariableByText
- replaceVariableByWordFragment
- replaceVariableByWordML
- setTemplateSymbol
- setTemplateBlockSymbol
pdx:createListStyle
Creates a custom list style to use it in combination with the addList and embedHTML methods.
Note
You are reading the XML API documentation. For the PHP API method please go to createListStyle.
Description
Element definition
This element allows the generation of custom list styles that can be used in combination with the addList and embedHTML methods.
If you want the embedded HTML code to use the generated list style, this must have the same name as the corresponding CSS class for the UL tag. Do not forget to set the option 'customListStyles' to true in your call to embedHTML.
Attributes and sub-elements
name
The name of the list you are creating. If used in combination with the embedHTML or replaceVariableByHTML elements the name given to the new custom list has to coincide with the list style name that you want to override.
options
Key | Description |
---|---|
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. |
hanging | The extra space for the numbering, should be big enough to accommodate it, the default is 360. |
italic | If true use italics. |
left | The left indent. The default value is 720 times the list level. |
position | Position value. |
start | Start value. The default value is 1. |
underline | Underlines. Possible values are: single, words, double, dotted, dash and wave. |