DocumentProperty 对象是 DocumentProperties 集合的成员。备注使用Microsoft Word Document.BuiltinDocumentProperties (index) 属性(其中 index 是内置文档属性的名称或索引号)返回表示特定内置文档属性的单个 DocumentProperty 对象。使用Word Document.CustomDocumentProperties (index) 属性(其中 index 是自定义文档属性的名称或...
需要expression。 代表Document物件的變數。 註解 若要傳回單一DocumentProperty物件代表特定的內建文件屬性,可以使用BuiltinDocumentProperties屬性。 如果 Microsoft Word 不會定義的其中一個內建文件屬性的值,則讀取該文件屬性的Value屬性會產生錯誤。 如需傳回集合中單一成員的資訊,請參閱從集合傳回物件。
Document 对象是 Documents 集合的成员。 Documents 集合包含 Word 中当前打开的所有 Document 对象。 备注 使用Documents (索引) (其中 index 是文档名称或索引号)可返回单个 Document 对象。 以下示例关闭名为 Report.doc 的文档,而不保存更改。 VB 复制 Documents("Report.doc").Close SaveChanges:=wdDoNot...
在 Excel 的 VSTO 外接程序项目中,请使用CustomDocumentProperties对象的Workbook属性。 这些属性将返回DocumentProperties对象,该对象为DocumentProperty对象的集合。 可以使用集合的Item属性,按名称或索引检索该集合中的特定属性。 下面的示例演示如何在 Excel 文档级自定义项中添加自定义属性并为其赋值。
获取document 的一组 customProperty。 TypeScript 复制 readonly customProperties: Word.CustomPropertyCollection; 属性值 Word.CustomPropertyCollection 注解 [ API 集:WordApi 1.3 ]format 指定文档的格式。 TypeScript 复制 format: string; 属性值 string 注解 [ API 集:WordApi 1.3 ]...
代表一个文档。Document对象是Documents集合的成员。Documents集合包含 Word 中当前打开的所有Document对象。 备注 使用Documents(索引) (其中index是文档名称或索引号)可返回单个Document对象。 以下示例关闭名为 Report.doc 的文档,而不保存更改。 VB复制 Documents("Report.doc").Close SaveChanges:=wdDoNotSaveChanges ...
ClickButton1to start Microsoft Word. When prompted, on theFilemenu, clickProperties This code demonstrates reading and writing both the built-in document properties and the custom document properties. When run, this code displays the value of the built-inAuthorproperty, changes theSubjectproperty valu...
CustomProperty DataLabel DataLabels DataTable DefaultWebOptions Diagram DiagramNode DiagramNodeChildren DiagramNodes Dialog Dialogs Dictionaries Dictionary DisplayUnitLabel Document DocumentClass DocumentEvents DocumentEvents_CloseEventHandler DocumentEvents_Event DocumentEvents_NewEventHandler DocumentEvents_OpenEventHandl...
{//Add a main document part.MainDocumentPart mainPart =wordDocument.AddMainDocumentPart();//Create the document structure and add some text.mainPart.Document =newDocumentFormat.OpenXml.Wordprocessing.Document(); Body body= mainPart.Document.AppendChild(newBody()); ...
Document.Windows property (Word) Članak 19. 01. 2022. 7 suradnika Povratne informacije Sadržaj članka Syntax Remarks Example See also Returns a Windows collection that represents all windows for the specified document. Read-only....