Documents 接口

定义

DocumentWord 中当前打开的所有对象的集合。A collection of all the Document objects that are currently open in Word.

public interface class Documents : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("0002096C-0000-0000-C000-000000000046")]
public interface Documents : System.Collections.IEnumerable
type Documents = interface
    interface IEnumerable
Public Interface Documents
Implements IEnumerable
属性
实现

注解

使用 Documents 属性返回Documents集合。Use the Documents property to return the Documents collection.

使用 Add(Object, Object, Object, Object) 方法创建一个新的空文档,并将其添加到Documents集合。Use the Add(Object, Object, Object, Object) method to create a new empty document and add it to the Documents collection.

使用 Open 方法打开一个文件。Use the Open method to open a file.

使用文档index ),其中 index 是要返回单个document对象的文档名称或索引号。Use Documents(index), where index is the document name or index number to return a single Document object.

索引编号代表文档在 Documents 集合中的位置。The index number represents the position of the document in the Documents collection.

属性

Application

返回一个 Application 代表 Microsoft Word 应用程序的对象Returns a Application object that represents the Microsoft Word application

Count

返回指定集合中的项目数。Returns the number of items in the specified collection.

Creator

返回一个 32 位整数,它指示在其中创建指定的对象的应用程序。Returns a 32-bit integer that indicates the application in which the specified object was created.

Item[Object]

返回集合中的单个对象。Returns an individual object in a collection.

Parent

返回一个对象,代表指定对象的父对象。Returns an object that represents the parent object of the specified object.

方法

Add(Object, Object, Object, Object)

返回一个 Document 对象,表示添加到打开的文档集合中的新的空白文档。Returns a Document object that represents a new, empty document added to the collection of open documents.

AddBlogDocument(String, String, String, String)

返回一个对象,表示一个新的博客文档,Microsoft Office Word 发布到前三个参数所描述的帐户。Returns a object that represents a new blog document that Microsoft Office Word publishes to the account described by the first three parameters.

AddOld(Object, Object)

仅供内部使用。Reserved for internal use.

CanCheckOut(String)

确定 Microsoft Word 是否可以从服务器签出指定的文档。Determines if Microsoft Word can check out a specified document from a server. 读/写 BooleanRead/write Boolean.

CheckOut(String)

将指定的文档从服务器复制到本地计算机以进行编辑。Copies a specified document from a server to a local computer for editing.

Close(Object, Object, Object)

关闭指定的一个或一篇文档。Closes the specified document or documents.

GetEnumerator()
Open(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

打开指定的文档并将其添加到 Documents 集合中。Opens the specified document and adds it to the Documents collection.

Open2000(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

保留以供内部使用。 Reserved for internal use.

Open2002(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

保留以供内部使用。Reserved for internal use.

OpenNoRepairDialog(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

打开指定的文档并将其添加到 Documents 集合中。Opens the specified document and adds it to the Documents collection.

OpenOld(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

仅供内部使用。Reserved for internal use.

Save(Object, Object)

保存集合中的所有文档 DocumentsSaves all the documents in the Documents collection.

适用于