Microsoft.Office.Tools Namespace

The Microsoft.Office.Tools namespace contains types that are used by different kinds of Office projects in Visual Studio.

Classes

AddInBase

Provides the base class for the ThisAddIn class in application-level add-ins that you create by using Visual Studio.

CannotRemoveControlException

The exception that is thrown when code tries to remove a host control or Windows Forms control that was added to a document at design time.

CannotRemoveCustomizationException

The exception that is thrown when a customization could not be programmatically removed from a document.

ControlNameAlreadyExistsException

The exception that is thrown when you try to add a control to a Microsoft Office Excel workbook or Microsoft Office Word document at run time, but the name provided for the new control already exists in the workbook or document.

DesignTimeConstants
InvalidRangeException

The exception that is thrown when you try to add a control to a Microsoft Office Excel workbook at run time, but the specified range contains multiple areas instead of a contiguous block of cells.

OfficeXpsDocumentException

The exception that is thrown when the Visual Studio Tools for Office runtime cannot perform an operation on an Office Open XML Formats document because the format of the document is invalid.

RangeNotOnWorksheetException

The exception that is thrown when the range provided does not exist on the worksheet.

Interfaces

ActionBase

Defines shared functionality for smart tag actions in Office solutions for Word and Excel.

ActionsPane

Represents a custom user interface for the Document Actions task pane in a document-level customization for Word or Excel.

AddIn

Defines the core functionality of add-ins that you create by using the Office development tools in Visual Studio.

CustomTaskPane

Represents a custom task pane in a Microsoft Office application.

CustomTaskPaneCollection

Represents a collection of custom task panes in a Microsoft Office application.

EntryPoint
Factory

Provides a method you can use to create Ribbon controls at run time in an application-level add-in.

IAddInExtension

Represents an extension of an AddIn object.

ICachedDataPersistanceCallback
ICachedDataProvider
IExtension

Represents an extension of a type in the Visual Studio Tools for Office runtime.

IHostItemProvider
RegexCollection

Represents a collection of regular expressions to be recognized by a smart tag in an Office solution.

SmartTagBase

Defines shared functionality for smart tags in Office solutions for Word and Excel.

SmartTagCollection

Represents a collection of smart tags in a Word or Excel solution created by using the Office development tools in Visual Studio.

Enums

StackStyle

Specifies the direction that controls will be stacked on an actions pane.

Remarks

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