ParagraphFormat module

class ParagraphFormat.ParagraphFormat

Bases: WordAttrCollection

Represents the formatting options for a paragraph.

property AfterAutoSpacing: bool

Gets or sets a value indicating whether spacing after is automatic.

property AfterSpacing: float

Returns or sets the spacing (in points) after the paragraph.

property AfterSpacingLines: float

Gets a value specifies the spacing that should be added after the last line in this paragraph in the document in line units.

property AutoSpaceDE: bool

Returns the value that determines whether the space is automatically adjusted between Asian and Latin text.

property AutoSpaceDN: bool

Returns the value that determines whether the space is automatically adjusted between Asian text and numbers.

property BackColor: Color

Gets or sets background color of the paragraph.

property BeforeAutoSpacing: bool

Gets or sets a value indicating whether spacing before is automatic.

property BeforeSpacing: float

Returns or sets the spacing (in points) before the paragraph.

property BeforeSpacingLines: float

Gets a value specifies the spacing that should be added before the first line in this paragraph in the document in line units.

property Borders: Borders

Gets collection of borders in the paragraph.

ClearBackground()

Clears the paragraph background.

ClearFormatting()

Clears the paragraph formatting.

property FirstLineIndent: float

Gets or sets the value (in points) for first line or hanging indent. Positive value represents first-line indent, and Negative value represents hanging indent.

property FirstLineIndentChars: float

Gets the value that represents the paragraph first line indent in character units.

property Frame: Frame
property HorizontalAlignment: HorizontalAlignment

Returns the horizontal alignment for the paragraph.

property IsBidi: bool

Returns or sets the right-to-left property of the paragraph.

property IsColumnBreakAfter: bool

Returns or sets a value indicating whether there is a column break after the paragraph.

property IsFrame: bool

Gets a value indicating whether this instance is a frame.

property IsKinSoku: bool

Gets or sets a value that determines whether to use Asian rules for controlling first and last characters.

property IsWidowControl: bool

Returns True if the first and last lines in the paragraph are to remain on the same page as the rest of the paragraph.

property KeepFollow: bool

Returns True if the paragraph is to remain on the same page as the paragraph that follows it.

property KeepLines: bool

Gets or sets a value indicating whether all lines in the paragraph are to remain on the same page.

property LeftIndent: float

Returns the value that represents the left indent for the paragraph.

property LeftIndentChars: float

Gets the value that represents the paragraph left indent in character units.

property LineSpacing: float

Returns or sets the line spacing property of the paragraph.

property LineSpacingRule: LineSpacingRule

Returns or sets the line spacing rule property of the paragraph.

property MirrorIndents: bool

Gets a value indicating whether the indentation type is mirror indents.

property OutlineLevel: OutlineLevel

Gets or sets the outline level.

property OverflowPunc: bool

Gets or sets a value indicating whether punctuation is allowed to extend past text extents.

property PageBreakAfter: bool

Returns True if a page break is forced after the paragraph.

property PageBreakBefore: bool

Returns True if a page break is forced before the paragraph.

property RightIndent: float

Returns the value that represents the right indent for the paragraph.

property RightIndentChars: float

Gets the value that represents the paragraph right indent in character units.

SetFirstLineIndent(firstLineIndent: float)

Sets the value that represents the first line indent for the paragraph.

SetFirstLineIndentChars(value: float)

Sets the value that represents the first line indent chars for paragraph.

SetLeftIndent(leftIndent: float)

Sets the value that represents the left indent for the paragraph.

SetRightIndent(rightIndent: float)

Sets the value that represents the right indent for the paragraph.

property SnapToGrid: bool

Gets or sets a value specifies whether the current paragraph snaps to grid when document grid is defined.

property SuppressAutoHyphens: bool

Indicates whether to suppress automatic hyphenation for the paragraph.

property Tabs: TabCollection

Gets the tabs info.

property TextAlignment: TextAlignment

Gets or sets the style of text alignment.

property WordWrap: bool

Gets or sets a value that determines whether to allow Latin text to wrap in the middle of a word.