Click to Rate and Give Feedback
MSDN
MSDN Library

  Switch on low bandwidth view
Word Primary Interop Assembly Reference
Document Interface
Represents a document.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Visual Basic
Public Class ocumentImplementation
    Implements Document
End Class
Dim ocumentImplementation1 As New ocumentImplementation()
Visual Basic
Public Interface Document
	Inherits _Document, DocumentEvents2_Event
C#
public interface Document : _Document, DocumentEvents2_Event
C++
public interface class Document : public _Document, DocumentEvents2_Event
J#
public interface Document implements _Document, DocumentEvents2_Event
JScript
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.

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.


Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker