This topic has not yet been rated - Rate this topic

Document interface

Represents a document.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
[GuidAttribute("0002096B-0000-0000-C000-000000000046")]
public interface Document : _Document, 
	DocumentEvents2_Event

The Document object is a member of the Documents collection. The Documents collection contains all the Document objects that are currently open in Microsoft Word.

UseDocuments(index) where index is the document name or index number to return a single Document object.

The index number represents the position of the document in the Documents collection.

Use the ActiveDocument property to refer to the document with the focus.

This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _Document. For information about the event members of the COM object, see DocumentEvents2_Event

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft. All rights reserved.