JSON API - createListStyle

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
  • none
  • bullet
  • decimal
  • upperRoman
  • lowerRoman
  • upperLetter
  • lowerLetter
  • ordinal
  • cardinalText
  • ordinalText
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.
  • src => image path
  • height => using pt
  • width => using pt
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.