Document Document Document Interface
Represents a document.
public interface class Document : Microsoft::Office::Interop::Word::_Document, Microsoft::Office::Interop::Word::DocumentEvents2_Event
[System.Runtime.InteropServices.Guid("0002096B-0000-0000-C000-000000000046")] public interface Document : Microsoft.Office.Interop.Word._Document, Microsoft.Office.Interop.Word.DocumentEvents2_Event
Public Interface Document Implements _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.
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