跳到主要内容

ApiParaPr

表示 ApiParaPr 类。

方法

方法返回值描述
GetBetweenBorderBorder | undefined返回当前段落的段间边框。
GetBottomBorderBorder | undefined返回当前段落的底部边框。
GetClassType"paraPr"返回 ApiParaPr 类的类型。
GetContextualSpacingboolean | undefined返回当前段落的上下文间距值。
GetIndFirstLinetwips | undefined返回段落首行缩进。
GetIndLefttwips | undefined返回段落左侧缩进。
GetIndRighttwips | undefined返回段落右侧缩进。
GetJc"left" | "right" | "both" | "center" | undefined返回段落内容对齐方式。
GetKeepLinesboolean | undefined返回当前段落的保持行在一起值。
GetKeepNextboolean | undefined返回当前段落的与下段同页值。
GetLeftBorderBorder | undefined返回当前段落的左边框。
GetNumPrApiNumberingLevel | undefined返回当前段落的编号级别,引用当前文档中的编号定义实例。
GetOutlineLvlNumber | undefined返回指定属性的大纲级别。
GetPageBreakBeforeboolean | undefined返回当前段落的段前分页值。
GetRightBorderBorder | undefined返回当前段落的右边框。
GetShdShd | undefined返回应用于段落内容的底纹。
GetSpacingAftertwips返回当前段落的段后间距值。
GetSpacingBeforetwips返回当前段落的段前间距值。
GetSpacingLineRule"auto" | "atLeast" | "exact" | undefined返回段落行距规则。
GetSpacingLineValuetwips | line240 | undefined返回段落行距值。
GetStyleApiStyle返回段落样式方法。
GetTabsTabStop[]返回当前段落的自定义制表位。
GetTopBorderBorder | undefined返回当前段落的顶部边框。
GetWidowControlboolean | undefined返回当前段落的孤行控制值。
SetBetweenBorderboolean指定在具有相同段落边框设置的一组段落中每个段落之间显示的边框。
SetBottomBorderboolean指定在具有相同段落边框设置的一组段落下方显示的边框。
SetContextualSpacingboolean指定使用
SetIndFirstLineboolean设置段落首行缩进。
SetIndLeftboolean设置段落左侧缩进。
SetIndRightboolean设置段落右侧缩进。
SetJcboolean设置段落内容对齐方式。
SetKeepLinesboolean指定在使用页面视图呈现文档时,尽可能将当前段落的所有行保持在同一页上。
SetKeepNextboolean指定在使用分页视图呈现文档时,当前段落的内容至少
SetLeftBorderboolean指定将在指定段落周围的页面左侧显示的边框。
SetNumPrboolean指定当前段落引用当前文档中的编号定义实例。
SetOutlineLvlboolean设置指定属性的大纲级别。
SetPageBreakBeforeboolean指定在使用分页视图呈现文档时,当前段落的内容呈现在
SetRightBorderboolean指定将在指定段落周围的页面右侧显示的边框。
SetShdboolean指定应用于段落内容的底纹。
SetSpacingAfterboolean设置当前段落的段后间距。如果 isAfterAuto 参数的值为 true,则
SetSpacingBeforeboolean设置当前段落的段前间距。如果 isBeforeAuto 参数的值为 true,则
SetSpacingLineboolean设置段落行距。如果 sLineRule 参数的值为
SetStyleboolean段落样式基础方法。
SetTabsboolean指定将用于当前段落中任何制表符的自定义制表位序列。
SetTopBorderboolean指定在具有相同段落边框设置的一组段落上方显示的边框。
SetWidowControlboolean指定在显示时是否通过将当前段落的单独一行移动到下一页来使其与其余内容显示在不同的页面上。
ToJSONJSON将 ApiParaPr 对象转换为 JSON 对象。