ListFormat module

class ListFormat.ListFormat

Bases: WordAttrCollection

Represents the formatting of a list in a document.

ApplyBulletStyle()

Apply the default bullet style for the current paragraph.

ApplyNumberedStyle()

Apply the default numbered style for the current paragraph.

ApplyStyle(styleName: str)

Apply a list style.

Parameters:

styleName – The name of the list style.

ContinueListNumbering()

Continue the last list.

property CurrentListLevel: ListLevel

Gets the paragraph’s ListLevel.

property CurrentListStyle: ListStyle

Gets the paragraph’s list style.

property CustomStyleName: str

Gets the name of the custom style.

DecreaseIndentLevel()

Decrease the level of indentation.

IncreaseIndentLevel()

Increase the level of indentation.

property IsRestartNumbering: bool

Returns or sets whether numbering of the list must restart from the previous list.

property ListLevelNumber: int

Returns or sets the list nesting level.

property ListType: ListType

Gets the type of the list.

RemoveList()

Remove the list from the current paragraph.