Word.Interfaces.StyleData interface
一个接口,用于描述通过调用 style.toJSON()返回的数据。
属性
| base |
指定要用作另一个样式的基本格式的现有样式的名称。 |
| borders | 指定一个 |
| built |
获取样式是否为内置样式。 |
| font | 获取一个 |
| in |
获取样式是已在文档中修改或应用的内置样式,还是已在文档中创建的新样式。 |
| linked | 获取样式是否为可用于段落和字符格式的链接样式。 |
| list |
获取一个 |
| name |
获取用户语言样式的名称。 |
| next |
指定要自动应用于新段落的样式名称,该段落在用样式设置格式的段落之后插入。 |
| paragraph |
获取一个 |
| priority | 指定优先级。 |
| quick |
指定样式是否对应于可用的快速样式。 |
| shading | 获取一个 |
| table |
获取表示 |
| type | 获取样式类型。 |
| unhide |
指定在文档中使用样式后,该样式是否在样式库和Word Microsoft样式任务窗格中显示为推荐样式。 |
| visibility | 指定样式在“样式”库和“样式”任务窗格中是否显示为推荐样式。 |
属性详细信息
baseStyle
指定要用作另一个样式的基本格式的现有样式的名称。
baseStyle?: string;
属性值
string
注解
注意:WordApi 1.6 中引入了设置 baseStyle 功能。
borders
指定一个 BorderCollection 对象,该对象代表样式的所有边框。
borders?: Word.Interfaces.BorderData[];
属性值
注解
builtIn
font
获取一个 Font 对象,该对象表示样式的字符格式。
font?: Word.Interfaces.FontData;
属性值
注解
inUse
linked
listTemplate
获取一个 ListTemplate 对象,该对象表示样式的列表格式。
listTemplate?: Word.Interfaces.ListTemplateData;
属性值
注解
nameLocal
nextParagraphStyle
指定要自动应用于新段落的样式名称,该段落在用样式设置格式的段落之后插入。
nextParagraphStyle?: string;
属性值
string
注解
注意:WordApi 1.6 中引入了设置 nextParagraphStyle 功能。
paragraphFormat
获取一个 ParagraphFormat 对象,该对象表示样式的段落设置。
paragraphFormat?: Word.Interfaces.ParagraphFormatData;
属性值
注解
priority
quickStyle
shading
获取一个 Shading 对象,该对象表示样式的底纹。 不适用于类型的样式 List 。
shading?: Word.Interfaces.ShadingData;
属性值
注解
tableStyle
获取表示 TableStyle 可应用于表的样式属性的对象。
tableStyle?: Word.Interfaces.TableStyleData;
属性值
注解
type
获取样式类型。
type?: Word.StyleType | "Character" | "List" | "Paragraph" | "Table";
属性值
Word.StyleType | "Character" | "List" | "Paragraph" | "Table"
注解
unhideWhenUsed
指定在文档中使用样式后,该样式是否在样式库和Word Microsoft样式任务窗格中显示为推荐样式。
unhideWhenUsed?: boolean;
属性值
boolean