跳转到主要内容
paragraphStyle 元素用于描述单个段落的格式样式。它包含一个 fontStyle 元素。具有以下属性:
PropertyData typeDescription
id *string文档中段落的标识符。
name *string段落样式的名称。
mainFontStyleId *string段落的主字体样式。
role *string段落在文档中的功能。可能的取值:text, tableText, heading, tableHeading, pictureCaption, tableCaption, contents, footNote, endNote, rt, garb, other, barcode, headingNumber
roleLevelinteger角色级别。默认值为 -1,表示该角色没有可用的级别。
align *string段落对齐方式。可能的取值:Left, Center, Right, Justified, Unknown。默认值为 Left。
indentLeftinteger左缩进。默认值为 0。
indentRightinteger右缩进。默认值为 0。
indentFirstinteger首行缩进。默认值为 0。
lineSpacinginteger行间距。默认值为 -1,表示自动行间距。

FontStyle 元素

fontStyle 元素描述段落中所用字体的格式样式。具有以下属性:
PropertyData typeDescription
id *string字体样式的标识符。
italicboolean表示该字体样式是否为斜体。
boldboolean表示该字体样式是否为粗体。
underlineboolean表示该字体样式是否带有下划线。
strikeoutboolean表示该字体样式是否为删除线。
smallcapsboolean表示字体是否为小型大写字母(small caps)。
scalinginteger字体的缩放比例。默认值为 1000。
spacingboolean字符间距。默认值为 0。
colorboolean字体颜色。默认值为 0。
backgroundColorboolean背景颜色。默认值为 0。
ff *string字体名称。
fs *float字体大小。
星号表示必填属性。