Word.Interfaces.DocumentData interface
一个接口,用于描述通过调用 document.toJSON()返回的数据。
属性
| active |
获取文档的活动窗口。 |
| auto |
指定是否为文档启用自动断字。 |
| auto |
指定是否自动保存文档中的编辑内容。 |
| bibliography | 返回一个 |
| body | 获取 |
| change |
指定 ChangeTracking 模式。 |
| consecutive |
指定以连字符结尾的连续行的最大数目。 |
| content |
获取文档中对象的 |
| custom |
获取文档中的自定义 XML 部件。 |
| document |
返回一个 |
| frames | 返回一个 |
| hyperlinks | 返回一个 |
| hyphenate |
指定是否可以对所有大写字母中的单词进行断字符。 |
| language |
指定Microsoft Word是否检测到文档文本的语言。 |
| page |
返回与 |
| properties | 获取文档的属性。 |
| saved | 指示是否已保存在文档中所做的更改。 值 |
| sections | 获取文档中对象的 |
| settings | 获取文档中加载项的设置。 |
| windows | 获取文档的 |
属性详细信息
activeWindow
获取文档的活动窗口。
activeWindow?: Word.Interfaces.WindowData;
属性值
注解
autoHyphenation
autoSaveOn
bibliography
返回一个 Bibliography 对象,该对象表示文档中包含的书目引用。
bibliography?: Word.Interfaces.BibliographyData;
属性值
注解
body
获取 Body 主文档的 对象。 正文是排除页眉、页脚、脚注、文本框等的文本。
body?: Word.Interfaces.BodyData;
属性值
注解
changeTrackingMode
指定 ChangeTracking 模式。
changeTrackingMode?: Word.ChangeTrackingMode | "Off" | "TrackAll" | "TrackMineOnly";
属性值
Word.ChangeTrackingMode | "Off" | "TrackAll" | "TrackMineOnly"
注解
consecutiveHyphensLimit
contentControls
获取文档中对象的 ContentControl 集合。 这包括文档正文中的内容控件、页眉、页脚、文本框等。
contentControls?: Word.Interfaces.ContentControlData[];
属性值
注解
customXmlParts
获取文档中的自定义 XML 部件。
customXmlParts?: Word.Interfaces.CustomXmlPartData[];
属性值
注解
documentLibraryVersions
返回一个 DocumentLibraryVersionCollection 对象,该对象表示已启用版本控制且存储在服务器上的文档库中的共享文档的版本集合。
documentLibraryVersions?: Word.Interfaces.DocumentLibraryVersionData[];
属性值
注解
frames
返回一个 FrameCollection 对象,该对象表示文档中的所有框架。
frames?: Word.Interfaces.FrameData[];
属性值
注解
hyperlinks
返回一个 HyperlinkCollection 对象,该对象代表文档中的所有超链接。
hyperlinks?: Word.Interfaces.HyperlinkData[];
属性值
注解
hyphenateCaps
languageDetected
指定Microsoft Word是否检测到文档文本的语言。
languageDetected?: boolean;
属性值
boolean
注解
pageSetup
返回与 PageSetup 文档关联的 对象。
pageSetup?: Word.Interfaces.PageSetupData;
属性值
注解
properties
获取文档的属性。
properties?: Word.Interfaces.DocumentPropertiesData;
属性值
注解
saved
sections
获取文档中对象的 Section 集合。
sections?: Word.Interfaces.SectionData[];
属性值
注解
settings
获取文档中加载项的设置。
settings?: Word.Interfaces.SettingData[];
属性值
注解
windows
获取文档的 Word.Window 对象的集合。
windows?: Word.Interfaces.WindowData[];