This documentation is archived and is not being maintained.

Word Document-Level Customization Development

Visual Studio 2008

Applies to

The information in this topic applies only to the specified Visual Studio Tools for Office projects and versions of Microsoft Office.

Project type

  • Document-level projects

Microsoft Office version

  • Word 2003

  • Word 2007

For more information, see Features Available by Application and Project Type.

A document-level customization for Microsoft Office Word consists of an assembly that is associated with a specific document. The assembly typically extends the document by customizing the user interface (UI) and by automating Word. Unlike an application-level add-in, which is associated with Word itself, functionality that you implement in a customization is available only when the associated document is open in Word.

For more information about document-level customizations, see Getting Started Programming Document-Level Customizations for Word and Architecture of Document-Level Customizations.

When you develop a document-level project for Word, you work with Visual Studio Tools for Office features and automate Word by using host items and host controls. These are classes that extend some of the objects that are provided by the native object model for Microsoft Office Word (that is, the object model that is exposed by the primary interop assembly for Word). For more information, see Automating Word by Using Extended Objects.

For general information about the programming model of document-level customizations in Visual Studio Tools for Office, see Programming Document-Level Customizations.

For both Word 2003 and Word 2007, you can customize the UI in the following ways:

For Word 2007, you can also customize the UI in the following ways:

For Word 2003, you can also customize the UI in the following ways:

For more information about customizing the UI of Word and other Microsoft Office applications, see Office UI Customization.