ParagraphStyle module

class ParagraphStyle.ParagraphStyle

Bases: Style, IParagraphStyle

Represents a paragraph style.

ApplyBaseStyle

Applies a base style to the paragraph style.

Parameters:

styleName (str) – The name of the base style to apply.

property BaseStyle: ParagraphStyle

Gets the base style of the paragraph style.

Returns:

The base style of the paragraph style.

Return type:

ParagraphStyle

Clone() IStyle

Creates a clone of the paragraph style.

Returns:

A clone of the paragraph style.

Return type:

IStyle

property ListFormat: ListFormat

Gets the list format of the paragraph style.

Returns:

The list format of the paragraph style.

Return type:

ListFormat

property ParagraphFormat: ParagraphFormat

Gets the paragraph format of the paragraph style.

Returns:

The paragraph format of the paragraph style.

Return type:

ParagraphFormat

property StyleType: StyleType

Gets the style type of the paragraph style.

Returns:

The style type of the paragraph style.

Return type:

StyleType