Word.Interfaces.DocumentCreatedData interface
一个描述通过调用 documentCreated.toJSON()返回的数据的接口。
属性
| body | 获取 |
| content |
获取文档中的对象集合 |
| custom |
获取文档中的自定义 XML 部分。 |
| properties | 获取文档的属性。 |
| saved | 指示是否已保存在文档中所做的更改。 值 |
| sections | 获取文档中的对象集合 |
| settings | 获取文档中加载项的设置。 |
属性详细信息
body
获取 Body 文档的对象。 正文是不包括页眉、页脚、脚注、文本框等的文本。
body?: Word.Interfaces.BodyData;
属性值
注解
contentControls
获取文档中的对象集合 ContentControl 。 这包括文档正文、页眉、页脚、文本框等内容控件。
contentControls?: Word.Interfaces.ContentControlData[];
属性值
注解
customXmlParts
获取文档中的自定义 XML 部分。
customXmlParts?: Word.Interfaces.CustomXmlPartData[];
属性值
注解
properties
获取文档的属性。
properties?: Word.Interfaces.DocumentPropertiesData;
属性值
注解
saved
指示是否已保存在文档中所做的更改。 值 true 指示文档自保存后未更改。
saved?: boolean;
属性值
boolean
注解
sections
获取文档中的对象集合 Section 。
sections?: Word.Interfaces.SectionData[];
属性值
注解
settings
获取文档中加载项的设置。
settings?: Word.Interfaces.SettingData[];