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_namestr读取获取样式名称。
alignmentint读取获取对齐方式。
left_indentfloat读取获取左缩进。
right_indentfloat读取获取右缩进。
first_line_indentfloat读取获取首行缩进。
space_beforefloat读取获取段前间距。
space_afterfloat读取获取后面的空间。
space_before_autobool读取获取自动前的间距。
space_after_autobool读取获取自动后的后置间距。
line_spacingfloat读取获取行间距。
line_spacing_ruleint读取获取行间距规则。
keep_with_nextbool读取获取与下一段一起保持。
page_break_beforebool读取获取页面前的分页符。
no_space_between_paragraphs_of_same_stylebool读取获取相同样式段落之间的无间距。
outline_levelint读取获取大纲级别。
is_headingbool读取获取是否为标题。
is_list_itembool读取获取是否为列表项。
shadingShading读取获取阴影。
borderslist[Border]读取获取边框。
paragraph_break_fontOptional[Font]读取获取段落换行的字体。
style_identifierint读取获取样式标识符。
keep_togetherbool读取获取保持在一起。
widow_controlbool读取获取 widow 控制。
suppress_auto_hyphensbool读取获取抑制自动连字符。
suppress_line_numbersbool读取获取抑制行号。
snap_to_gridbool读取获取网格捕捉。
add_space_between_far_east_and_alphabool读取获取在 far east 和 alpha 之间添加的空格。
add_space_between_far_east_and_digitbool读取获取在全角字符和数字之间添加的空格。
auto_adjust_right_indentbool读取获取自动调整的右缩进。
baseline_alignmentint读取获取基线对齐方式。
conditional_styleConditionalStyleMask读取获取条件样式。
tab_stopsTabStopCollection读取获取制表位。
frame_formatOptional["FrameFormat"]读取获取框架格式。
lines_to_dropint读取获取要删除的行。
drop_cap_positionint读取获取首字下沉的位置。

另请参阅

 中文