Compartir a través de


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:

Classes

  Class Description
Public class AddInBase Provides the base class for the ThisAddIn class in application-level add-ins that you create by using Visual Studio.
Public class 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.
Public class CannotRemoveCustomizationException The exception that is thrown when a customization could not be programmatically removed from a document.
Public class 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.
Public class DesignTimeConstants Infrastructure.
Public class 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.
Public class 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.
Public class RangeNotOnWorksheetException The exception that is thrown when the range provided does not exist on the worksheet.

Interfaces

  Interface Description
Public interface ActionBase Defines shared functionality for smart tag actions in Office solutions for Word and Excel.
Public interface ActionsPane Represents a custom user interface for the Document Actions task pane in a document-level customization for Word or Excel.
Public interface AddIn Defines the core functionality of add-ins that you create by using the Office development tools in Visual Studio.
Public interface CustomTaskPane Represents a custom task pane in a Microsoft Office application.
Public interface CustomTaskPaneCollection Represents a collection of custom task panes in a Microsoft Office application.
Public interface EntryPoint Infrastructure.
Public interface Factory Provides a method you can use to create Ribbon controls at run time in an application-level add-in.
Public interface IAddInExtension Represents an extension of an AddIn object.
Public interface ICachedDataPersistanceCallback Infrastructure.
Public interface ICachedDataProvider Infrastructure.
Public interface IExtension Represents an extension of a type in the Visual Studio Tools for Office runtime.
Public interface IHostItemProvider Infrastructure.
Public interface RegexCollection Represents a collection of regular expressions to be recognized by a smart tag in an Office solution.
Public interface SmartTagBase Defines shared functionality for smart tags in Office solutions for Word and Excel.
Public interface 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
Public enumeration StackStyle Specifies the direction that controls will be stacked on an actions pane.

See Also

Reference

Other Resources

AddIn Host Item

Custom Task Panes

Actions Pane Overview

Smart Tags Overview