跳转到主要内容
paragraphStyle 元素用于描述单个段落的格式样式。包含一个 fontStyle 元素。具有以下属性:
属性数据类型说明
id *string文档中该段落的标识符。
name *string段落样式名称。
mainFontStyleId *string段落的主字体样式。
role *string段落在文档中的作用。可选值:texttableTextheadingtableHeadingpictureCaptiontableCaptioncontentsfootNoteendNotertgarbotherbarcodeheadingNumber
roleLevelinteger角色级别。默认值为 -1,表示该角色不适用级别。
align *string段落对齐方式。可选值:LeftCenterRightJustifiedUnknown。默认值为 Left。
indentLeftinteger左缩进。默认值:0。
indentRightinteger右缩进。默认值:0。
indentFirstinteger首行缩进。默认值:0。
lineSpacinginteger行间距。默认值为 -1,表示自动行间距。

FontStyle 元素

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