ParagraphFormat
概述
ParagraphFormat 是 Aspose.Words FOSS 中用于 Python 的类。继承自:BaseModel。
ParagraphFormat.alignment 指定段落的水平对齐方式。
属性:add_space_between_far_east_and_alpha、add_space_between_far_east_and_digit、alignment、auto_adjust_right_indent、baseline_alignment、borders,以及另外 29 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
style_name | str | 读取 | 获取样式名称。 |
alignment | int | 读取 | 获取对齐方式。 |
left_indent | float | 读取 | 获取左缩进。 |
right_indent | float | 读取 | 获取右缩进。 |
first_line_indent | float | 读取 | 获取首行缩进。 |
space_before | float | 读取 | 获取段前间距。 |
space_after | float | 读取 | 获取后面的空间。 |
space_before_auto | bool | 读取 | 获取自动前的间距。 |
space_after_auto | bool | 读取 | 获取自动后的后置间距。 |
line_spacing | float | 读取 | 获取行间距。 |
line_spacing_rule | int | 读取 | 获取行间距规则。 |
keep_with_next | bool | 读取 | 获取与下一段一起保持。 |
page_break_before | bool | 读取 | 获取页面前的分页符。 |
no_space_between_paragraphs_of_same_style | bool | 读取 | 获取相同样式段落之间的无间距。 |
outline_level | int | 读取 | 获取大纲级别。 |
is_heading | bool | 读取 | 获取是否为标题。 |
is_list_item | bool | 读取 | 获取是否为列表项。 |
shading | Shading | 读取 | 获取阴影。 |
borders | list[Border] | 读取 | 获取边框。 |
paragraph_break_font | Optional[Font] | 读取 | 获取段落换行的字体。 |
style_identifier | int | 读取 | 获取样式标识符。 |
keep_together | bool | 读取 | 获取保持在一起。 |
widow_control | bool | 读取 | 获取 widow 控制。 |
suppress_auto_hyphens | bool | 读取 | 获取抑制自动连字符。 |
suppress_line_numbers | bool | 读取 | 获取抑制行号。 |
snap_to_grid | bool | 读取 | 获取网格捕捉。 |
add_space_between_far_east_and_alpha | bool | 读取 | 获取在 far east 和 alpha 之间添加的空格。 |
add_space_between_far_east_and_digit | bool | 读取 | 获取在全角字符和数字之间添加的空格。 |
auto_adjust_right_indent | bool | 读取 | 获取自动调整的右缩进。 |
baseline_alignment | int | 读取 | 获取基线对齐方式。 |
conditional_style | ConditionalStyleMask | 读取 | 获取条件样式。 |
tab_stops | TabStopCollection | 读取 | 获取制表位。 |
frame_format | Optional["FrameFormat"] | 读取 | 获取框架格式。 |
lines_to_drop | int | 读取 | 获取要删除的行。 |
drop_cap_position | int | 读取 | 获取首字下沉的位置。 |