Bagikan melalui


Microsoft.Office.Tools Namespace (2007 System)

The Microsoft.Office.Tools namespace contains the host item class for application-level add-in projects, and additional classes that you can use to create custom task panes, actions panes, and smart tags.

The host item class for application-level add-ins is the AddIn class. For more information, see AddIn Host Item.

To create a custom task pane in an application-level add-in, use the CustomTaskPane and CustomTaskPaneCollection classes. For more information, see Custom Task Panes Overview.

To create an actions pane in a document-level customization, use the ActionsPane class. For more information, see Actions Pane Overview.

The Microsoft.Office.Tools namespace also contains the following classes that provide base functionality for smart tags in Visual Studio Tools for Office solutions:

For more information, see Smart Tags Overview.

Classes

  Class Description
Public class ActionBase Provides the base class for smart tag actions in Visual Studio Tools for Office solutions for Microsoft Office Word and Microsoft Office Excel. 
Public class ActionsPane The class that provides implementation for customizing the Document Actions task pane in document-level customizations for Microsoft Office Word and Microsoft Office Excel.
Public class AddIn Provides core functionality for an add-in for a Microsoft Office application.
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 CustomTaskPane Represents a custom task pane in a Microsoft Office application.
Public class CustomTaskPaneCollection Represents a collection of custom task panes in a Microsoft Office application.
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 OfficeOleAppInfoDocument Infrastructure.
Public class OfficeOpenXmlAppInfoDocument Infrastructure.
Public class OfficeXpsDocumentException The exception that is thrown when the Visual Studio Tools for Office runtime cannot perform an operation on a Microsoft 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.
Public class RegexCollection Represents a collection of regular expressions to be recognized by a smart tag in a Visual Studio Tools for Office solution.
Public class SmartTagBase Provides the base class for smart tags in Visual Studio Tools for Office solutions.
Public class SmartTagCollection Represents a collection of smart tags in a Visual Studio Tools for Office solution.

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 Overview

Actions Pane Overview

Smart Tags Overview