I need a space after the number in the list. Tell me please, how to do this using Api JavaScript for Word.
In the properties of the List
object, I can only set the spacing of the paragraph and the indentation of the first line of the paragraph (setLevelIndents
).
The distance between the symbol and the text is the difference between the first and the second properties in the dialog box in the image. The first of these sets the indent of the symbol from the text margin; the second the indent of the text from the text margin. Increase the latter or decrease the former in order to increase the space between symbol and text.
In the Office JS API (API Set Word 1.3) the corresponding method is setLevelIndents
. The method signature
setLevelIndents(level, textIndent, bulletNumberPictureIndent)
The second parameter (textIndent
) corresponds to the second control in the dialog box shown in the question. The third parameter (bulletNumberPictureIndent
) corresponds to the first control in that dialog box.