ParagraphStyle

ParagraphStyle class

这个类描述了PUB段落的样式

public class ParagraphStyle : BaseStyle

构造函数

姓名描述
ParagraphStyle()默认构造函数。

特性

姓名描述
Align { get; }对齐类型
BottomIndent { get; }底部缩进
DefaultStyleIndex { get; }Document.DefaultTextStyles 数组中默认文本样式的索引
FirstLineIndent { get; }第一行缩进
IsEmpty { get; }样式未初始化
IsList { get; }是列表段落
IsOrderedList { get; }是段落有序列表
LeftIndent { get; }左缩进
LineSpacingType { get; }行距类型
LineSpacingValue { get; }行距值
RightIndent { get; }右缩进
TopIndent { get; }顶部缩进值
UnorderedListChar { get; }段落中无序列表的字符,如果段落是无序列表

方法

姓名描述
SetAlignmentType(AlignmentType)设置对齐类型
SetBottomIndent(int)设置底部缩进
SetDefaultStyleIndex(int)为 Document.DefaultTextStyles 数组中的默认文本样式设置索引
SetFirstLineIndent(int)设置第一行缩进
SetIsList(bool)设置为段落列表
SetIsOrderedList(bool)设置段落是否有序 list
SetLeftIndent(int)设置左缩进
SetLineSpacingType(LineSpacingType)设置行距类型
SetLineSpacingValue(double)设置行距值
SetRightIndent(int)设置右缩进
SetTopIndent(int)设置顶部缩进
SetUnorderedListChar(char)为段落中的无序列表设置字符

也可以看看