Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Reference
Document Class

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Word Object Model Reference (Visual Studio Tools for Office)
Document Class

Represents a Microsoft Office Word 2003 document.

Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word (in microsoft.office.tools.word.dll)

Visual Basic (Declaration)
Public Class Document
	Inherits BindableComponent
	Implements IActivatable, ISupportInitializeControl, ISupportInitialize
Visual Basic (Usage)
Dim instance As Document
C#
public class Document : BindableComponent, IActivatable, ISupportInitializeControl, ISupportInitialize

Use Globals.ThisDocument to refer to the document instance when you are outside of the Document class, but inside of the project. Globals does not work if you are in another project.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker