Word.Interfaces.DocumentData interface
一个接口,用于描述通过调用 document.toJSON()返回的数据。
属性
| body | 获取 |
| content |
获取文档中对象的 |
| properties | 获取文档的属性。 |
| saved | 指示是否已保存在文档中所做的更改。 值 |
| sections | 获取文档中对象的 |
属性详细信息
body
获取 Body 主文档的 对象。 正文是排除页眉、页脚、脚注、文本框等的文本。
body?: Word.Interfaces.BodyData;
属性值
注解
contentControls
获取文档中对象的 ContentControl 集合。 这包括文档正文中的内容控件、页眉、页脚、文本框等。
contentControls?: Word.Interfaces.ContentControlData[];
属性值
注解
properties
获取文档的属性。
properties?: Word.Interfaces.DocumentPropertiesData;
属性值
注解
saved
sections
获取文档中对象的 Section 集合。
sections?: Word.Interfaces.SectionData[];