| Property | Data type | Description |
|---|---|---|
id * | string | 文档中该段落的标识符。 |
name * | string | 段落样式的名称。 |
mainFontStyleId * | string | 段落的主字体样式。 |
role * | string | 段落在文档中的作用。可能的取值:text、tableText、heading、tableHeading、pictureCaption、tableCaption、contents、footNote、endNote、rt、garb、other、barcode、headingNumber。 |
roleLevel | integer | 角色级别。默认值为 -1,表示此角色没有可用的级别。 |
align * | string | 段落对齐方式。可能的取值:Left、Center、Right、Justified、Unknown。默认值为 Left。 |
indentLeft | integer | 左缩进。默认值为 0。 |
indentRight | integer | 右缩进。默认值为 0。 |
indentFirst | integer | 首行缩进。默认值为 0。 |
lineSpacing | integer | 行间距。默认值为 -1,表示自动行距。 |
FontStyle 元素
| Property | Data type | Description |
|---|---|---|
id * | string | 字体样式的标识符。 |
italic | boolean | 指示该字体样式是否为斜体。 |
bold | boolean | 指示该字体样式是否为粗体。 |
underline | boolean | 指示该字体样式是否带下划线。 |
strikeout | boolean | 指示该字体样式是否带删除线。 |
smallcaps | boolean | 指示字体是否为小型大写字母。 |
scaling | integer | 字体缩放比例。默认值为 1000。 |
spacing | boolean | 字符间距。默认值为 0。 |
color | boolean | 字体颜色。默认值为 0。 |
backgroundColor | boolean | 背景颜色。默认值为 0。 |
ff * | string | 字体名称。 |
fs * | float | 字体大小。 |
星号表示必需属性。
