Microsoft.Office.Tools Namespace
The Microsoft.Office.Tools namespace contains types that are used by different kinds of Office projects in Visual Studio.
The Microsoft.Office.Tools namespace includes the following main types:
The AddInBase class. This is the base class for the ThisAddIn class in application-level add-in projects. For more information, see Programming Application-Level Add-Ins.
Types for creating custom task panes in application-level add-ins, including CustomTaskPane and CustomTaskPaneCollection. For more information, see Custom Task Panes.
Types for creating actions panes in document-level customizations, including ActionsPane and StackStyle. For more information, see Actions Pane Overview.
Types for creating smart tags, such as ActionBase, ActionBase, and SmartTagBase. For more information, see Smart Tags Overview.
Classes
Class | Description | |
---|---|---|
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 | Infrastructure. | |
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
Interface | Description | |
---|---|---|
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 | Infrastructure. | |
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 | Infrastructure. | |
ICachedDataProvider | Infrastructure. | |
IExtension | Represents an extension of a type in the Visual Studio Tools for Office runtime. | |
IHostItemProvider | Infrastructure. | |
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. |
Enumerations
Enumeration | Description | |
---|---|---|
StackStyle | Specifies the direction that controls will be stacked on an actions pane. |