AddDocumentWorkspaceHeader基础结构。 AddMeetingWorkspaceHeader基础结构。 AddToFavorites创建一个文档快捷方式并将其添加到“收藏夹”文件夹中。 ApplyDocumentTheme将文档主题应用于文档。 ApplyQuickStyleSet更改快速样式集。 ApplyQuickStyleSet2对文档应用指定的快速样式集。此方法只能用于 Word 2010 项目中。
Word_Document 对象 Document对象'代表一个文档。Document对象是Documents集合的成员。Documents集合中包含当前在Word中打开的所有Document对象。 方法 AcceptAllRevisions'接受对指定文档的所有修订。 AcceptAllRevisionsShown'接受显示在屏幕上的指定文档中的所有修订。 Activate'激活指定的文档,使其成为活动文档。 AddTo...
DocumentLibraryVersions 返回一个 DocumentLibraryVersions 集合,该集合表示已启用版本控制且存储在服务器上的文档库中的共享文档版本的集合。 DocumentTheme 返回一个 OfficeTheme 对象,该对象表示应用于文档的 Microsoft Office 主题。 此为只读属性。 DoNotEmbedSystemFonts 确定Microsoft Word是否嵌入常见系统字体。
在文档级项目中,通常不要直接使用 Microsoft.Office.Tools.Word.Document 对象。 而是使用 ThisDocument 类以编程方式访问项目中的文档。 ThisDocument 类的大多数成员均从 Microsoft.Office.Tools.Word.DocumentBase 类派生。 此类将对其成员的所有调用重定向到 Visual Studio Tools for Office Runtime 中的 Microsoft...
Document 对象是 Documents 集合的成员。Documents 集合中包含当前在 Word 中打开的所有 Document 对象。方法 AcceptAllRevisions接受对指定文档的所有修订。 AcceptAllRevisionsShown接受显示在屏幕上的指定文档中的所有修订。 Activate激活指定的文档,使其成为活动文档。 AddToFavorites创建文档或超链接的快捷方式,并将其...
document.getElementById("insert-paragraph").onclick = () => tryCatch(insertParagraph); Add the following functions to the end of the file. Note: Your Word.js business logic will be added to the function passed to Word.run. This logic doesn't execute immediately. Instead, it's added ...
Just remember to remove the page break again.Learn more at Headers and footers in Word (use Ctrl+click to open in a new tab)提示 It's possible to control the headers and footers for different sections of a document. The formatting you set up extends to each page of the section ...
DowngradeDocument EndReview ExportAsFixedFormat ExportAsFixedFormat2 FitToPages FollowHyperlink FreezeLayout GetCrossReferenceItems GetLetterContent GetWorkflowTasks GetWorkflowTemplates GoTo LockServerFile MakeCompatibilityDefault ManualHyphenation Merge Post PresentIt ...
Tip:If you have a long document, you might want to split it into multiple booklets, which you can then bind into one book. UnderSheets per booklet, choose how many pages to print per booklet. Select and increase the value ofGutterto reserve space on the inside fold for binding. ...
That way there’s less clean-up work to do if tables or other objects in your document don’t fit quite right. WindowsmacOS Create a booklet or book Go to Layout and select the Page Setup dialog launch icon at the bottom-right corner. On the Margins tab, change the setting for ...