ParagraphFormat
Overview
ParagraphFormat is a class in Aspose.Words for Python.
Inherits from: BaseModel.
ParagraphFormat.style_name gets or sets the name of the paragraph’s style.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
style_name | str | Read | Gets or sets the name of the paragraph’s style |
alignment | int | Read | Indicates the paragraph’s horizontal alignment as an integer code |
left_indent | float | Read | Specifies the left indentation distance in points |
right_indent | float | Read | Specifies the right indentation distance in points |
first_line_indent | float | Read | Gets or sets the first line indent distance in points |
space_before | float | Read | Sets the spacing before the paragraph in points |
space_after | float | Read | Sets the spacing after the paragraph in points |
space_before_auto | bool | Read | Indicates if spacing before is automatically determined |
space_after_auto | bool | Read | Indicates if spacing after is automatically determined |
line_spacing | float | Read | Gets or sets the line spacing multiplier for the paragraph |
line_spacing_rule | int | Read | Gets or sets the line spacing rule as an integer code |
keep_with_next | bool | Read | Determines whether the paragraph stays with the next paragraph |
page_break_before | bool | Read | Inserts a page break before the paragraph when true |
outline_level | int | Read | Gets or sets the outline level for the paragraph |
is_heading | bool | Read | Indicates if the paragraph is a heading |
is_list_item | bool | Read | Indicates if the paragraph is part of a list |
shading | Shading | Read | Provides shading (background fill) settings for the paragraph |
borders | list[Border] | Read | Returns a list of Border objects defining the paragraph borders |