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.

Classes

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.

DocumentBase

Provides the base class for the ThisDocument class in document-level projects for Microsoft Office Word.

Interfaces

Action

Represents a smart tag action in a Word document that is customized by using the Office development tools in Visual Studio.

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.

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.

Bookmark

The Bookmark control is a bookmark that has a unique name, exposes events, and can be bound to data.

Bookmark_InformationType
Bookmark_XMLType
BuildingBlockGalleryContentControl

Represents a gallery of document building blocks that users can insert into a document.

ClickEventArgs

Provides data for the BeforeDoubleClick and BeforeRightClick events.

ComboBoxContentControl

Represents a combo box on a document.

ContentControl

Represents a content control a document.

ContentControlAddedEventArgs

Provides data for the Added event of a content control.

ContentControlBase

Provides the base interface for content controls in Word solutions created by using the Office development tools in Visual Studio.

ContentControlContentUpdatingEventArgs

Provides data for the ContentUpdating event of a content control.

ContentControlDeletingEventArgs

Provides data for the Deleting event of a content control.

ContentControlEnteringEventArgs

Provides data for the Entering event.

ContentControlExitingEventArgs

Provides data for the Exiting event of a content control.

ContentControlStoreUpdatingEventArgs

Provides data for the StoreUpdating event of a content control.

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.

ControlCollection

Represents a collection of managed controls on a Word document that has been customized by using the Office development tools in Visual Studio.

ControlSite

Represents a linked or embedded control on a document.

DatePickerContentControl

Represents a date picker control on a document.

Document

Represents a document in Word projects created by using the Office development tools in Visual Studio.

Document_ActiveWritingStyleType
Document_CompatibilityType
DropDownListContentControl

Represents a drop-down list on a document.

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.

GroupContentControl

Represents a protected region of a document that users cannot edit or delete.

IDocumentExtension

Represents an extension of a Document object.

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.

MailMergeAfterMergeEventArgs

Provides data for the MailMergeAfterMerge event.

MailMergeWizardStateChangeEventArgs

Provides data for the MailMergeWizardStateChange event.

NodeInsertAndDeleteEventArgs

Provides data for the AfterInsert and BeforeDelete events of an XMLNode control, and for the AfterInsert and BeforeDelete events of an XMLNodes control.

PictureContentControl

Represents a document region that displays an image.

PlainTextContentControl

Represents a block of text in a document.

RichTextContentControl

Represents a block of text or other types of content in a document.

SaveEventArgs

Provides data for the BeforeSave event.

SelectionEventArgs

Provides data for the SelectionChange, Selected, and Deselected events of a Bookmark control.

SmartTag

Represents a smart tag in a Word document that is customized by using the Office development tools in Visual Studio.

SmartTagRecognizeContext

Provides the context of a call to a custom smart tag recognizer.

WindowEventArgs

Provides information for the ActivateEvent, Deactivate, and WindowSize events.

XMLNode

Represents a single XML node on a document that exposes events and that can be bound to data.

XMLNode_ValidationErrorTextType
XMLNode_XMLType
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

ActionClickEventHandler

Represents the method that will handle the Click event of an Action.

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.

ClickEventHandler

Represents the method that will handle the BeforeDoubleClick and BeforeRightClick events of a Document.

ContentControlAddedEventHandler

Represents the method that will handle the Added event of a ContentControlBase.

ContentControlContentUpdatingEventHandler

Represents the method that will handle the ContentUpdating event of a ContentControlBase.

ContentControlDeletingEventHandler

Represents the method that will handle the Deleting event of a ContentControlBase.

ContentControlEnteringEventHandler

Represents the method that will handle the Entering event of a ContentControlBase.

ContentControlExitingEventHandler

Represents the method that will handle the Exiting event of a ContentControlBase.

ContentControlStoreUpdatingEventHandler

Represents the method that will handle the StoreUpdating event of a ContentControlBase.

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.

MailMergeAfterMergeEventHandler

Represents the method that handles the MailMergeAfterMerge event of a Document.

MailMergeWizardStateChangeEventHandler

Represents the method that handles the MailMergeWizardStateChange event of a Document.

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.

SaveEventHandler

Represents the method that will handle the BeforeSave event of a Document.

SelectionEventHandler

Represents the method that handles the SelectionChange, Selected, and Deselected events of a Bookmark control.

WindowEventHandler

Represents the method that will handle the ActivateEvent, Deactivate, and WindowSize events.

Remarks

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