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[];