Microsoft.Office.Tools.Word Namespace

The Microsoft.Office.Tools.Word namespace contains types that extend and support the Microsoft Office Word object model in projects created by using the Office development tools in Visual Studio. For more information about these projects, see Office Project Templates Overview.

The Microsoft.Office.Tools.Word namespace includes the following main types:

Classes

  Class Description
Public class ControlExtensions Provides extension methods you can use to add Windows Forms controls to a Word document that has been customized by using the Office development tools in Visual Studio.
Public class DocumentBase Provides the base class for the ThisDocument class in document-level projects for Microsoft Office Word.

Interfaces

  Interface Description
Public interface Action Represents a smart tag action in a Word document that is customized by using the Office development tools in Visual Studio.
Public interface ActionEventArgs Provides data for the Click and BeforeCaptionShow events. This type or member is intended to be used only in projects for the 2007 Microsoft Office system. Smart tags are deprecated in Office 2010.
Public interface ApplicationFactory Provides methods you can use to perform miscellaneous tasks in application-level add-ins, such as extending native Word documents and creating Ribbon controls at run time.
Public interface Bookmark The Bookmark control is a bookmark that has a unique name, exposes events, and can be bound to data.
Public interface Bookmark_InformationType Infrastructure.
Public interface Bookmark_XMLType Infrastructure.
Public interface BuildingBlockGalleryContentControl Represents a gallery of document building blocks that users can insert into a document.
Public interface ClickEventArgs Provides data for the BeforeDoubleClick and BeforeRightClick events.
Public interface ComboBoxContentControl Represents a combo box on a document.
Public interface ContentControl Represents a content control a document.
Public interface ContentControlAddedEventArgs Provides data for the Added event of a content control.
Public interface ContentControlBase Provides the base interface for content controls in Word solutions created by using the Office development tools in Visual Studio.
Public interface ContentControlContentUpdatingEventArgs Provides data for the ContentUpdating event of a content control.
Public interface ContentControlDeletingEventArgs Provides data for the Deleting event of a content control.
Public interface ContentControlEnteringEventArgs Provides data for the Entering event.
Public interface ContentControlExitingEventArgs Provides data for the Exiting event of a content control.
Public interface ContentControlStoreUpdatingEventArgs Provides data for the StoreUpdating event of a content control.
Public interface ContextChangeEventArgs Provides data for the Select, Deselect, ContextEnter and ContextLeave events of an XMLNode object and the ContextEnter, ContextLeave, Select, and Deselect events of an XMLNodes object.
Public interface ControlCollection Represents a collection of managed controls on a Word document that has been customized by using the Office development tools in Visual Studio.
Public interface ControlSite Represents a linked or embedded control on a document.
Public interface DatePickerContentControl Represents a date picker control on a document.
Public interface Document Represents a document in Word projects created by using the Office development tools in Visual Studio.
Public interface Document_ActiveWritingStyleType Infrastructure.
Public interface Document_CompatibilityType Infrastructure.
Public interface DropDownListContentControl Represents a drop-down list on a document.
Public interface Factory Provides methods you can use to add perform miscellaneous tasks in a document-level customization, such as creating Ribbon controls at run time and adding smart tags to documents.
Public interface GroupContentControl Represents a protected region of a document that users cannot edit or delete.
Public interface IDocumentExtension Represents an extension of a Document object.
Public interface ISmartTagExtension Represents an extension of a smart tag in a Word document that is customized by using the Office development tools in Visual Studio. The extension defines a custom recognizer for the smart tag.
Public interface MailMergeAfterMergeEventArgs Provides data for the MailMergeAfterMerge event.
Public interface MailMergeWizardStateChangeEventArgs Provides data for the MailMergeWizardStateChange event.
Public interface NodeInsertAndDeleteEventArgs Provides data for the AfterInsert and BeforeDelete events of an XMLNode control, and for the AfterInsert and BeforeDelete events of an XMLNodes control.
Public interface PictureContentControl Represents a document region that displays an image.
Public interface PlainTextContentControl Represents a block of text in a document.
Public interface RichTextContentControl Represents a block of text or other types of content in a document.
Public interface SaveEventArgs Provides data for the BeforeSave event.
Public interface SelectionEventArgs Provides data for the SelectionChange, Selected, and Deselected events of a Bookmark control.
Public interface SmartTag Represents a smart tag in a Word document that is customized by using the Office development tools in Visual Studio.
Public interface SmartTagRecognizeContext Provides the context of a call to a custom smart tag recognizer.
Public interface WindowEventArgs Provides information for the ActivateEvent, Deactivate, and WindowSize events.
Public interface XMLNode Represents a single XML node on a document that exposes events and that can be bound to data.
Public interface XMLNode_ValidationErrorTextType Infrastructure.
Public interface XMLNode_XMLType Infrastructure.
Public interface XMLNodes A collection of XMLNode objects that represent the nodes in the tree view of the XML Structure task pane, which indicates the elements that a user has applied to a document.

Delegates

  Delegate Description
Public delegate ActionClickEventHandler Represents the method that will handle the Click event of an Action.
Public delegate BeforeCaptionShowEventHandler Represents the method that will handle the BeforeCaptionShow event of an Action. This type or member is intended to be used only in projects for the 2007 Microsoft Office system. Smart tags are deprecated in Office 2010.
Public delegate ClickEventHandler Represents the method that will handle the BeforeDoubleClick and BeforeRightClick events of a Document.
Public delegate ContentControlAddedEventHandler Represents the method that will handle the Added event of a ContentControlBase.
Public delegate ContentControlContentUpdatingEventHandler Represents the method that will handle the ContentUpdating event of a ContentControlBase.
Public delegate ContentControlDeletingEventHandler Represents the method that will handle the Deleting event of a ContentControlBase.
Public delegate ContentControlEnteringEventHandler Represents the method that will handle the ControlEntering event of a ContentControlBase.
Public delegate ContentControlExitingEventHandler Represents the method that will handle the Exiting event of a ContentControlBase.
Public delegate ContentControlStoreUpdatingEventHandler Represents the method that will handle the StoreUpdating event of a ContentControlBase.
Public delegate ContextChangeEventHandler Represents the method that will handle the Select, Deselect, ContextEnter and ContextLeave events of an XMLNode object and the ContextEnter, ContextLeave, Select, and Deselect events of an XMLNodes object.
Public delegate MailMergeAfterMergeEventHandler Represents the method that handles the MailMergeAfterMerge event of a Document.
Public delegate MailMergeWizardStateChangeEventHandler Represents the method that handles the MailMergeWizardStateChange event of a Document.
Public delegate NodeInsertAndDeleteEventHandler Represents the method that handles the AfterInsert and BeforeDelete events of an XMLNode control, and the AfterInsert and BeforeDelete events of an XMLNodes control.
Public delegate SaveEventHandler Represents the method that will handle the BeforeSave event of a Document.
Public delegate SelectionEventHandler Represents the method that handles the SelectionChange, Selected, and Deselected events of a Bookmark control.
Public delegate WindowEventHandler Represents the method that will handle the ActivateEvent, Deactivate, and WindowSize events.

See Also

Reference

Other Resources

Host Items and Host Controls Overview

Document Host Item

Word Host Controls

Content Controls

Programmatic Limitations of Host Items and Host Controls

Word Document-Level Customization Development

Office Solutions Development Overview