ActionBase Interface

Definition

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

[System.Runtime.InteropServices.Guid("fb74efb9-1a89-41cd-805e-02ac50bd5021")]
public interface ActionBase
Derived
Attributes

Remarks

Actions are the choices available on the smart tag shortcut menu when a smart tag is recognized. For example, "Add name to the Contacts folder" would be one possible action for a string of type Person's Name.

The ActionBase interface is the base interface for Microsoft.Office.Tools.Word.Action and Microsoft.Office.Tools.Excel.Action. To create a smart tag action in an Office solution for Word or Excel, use the Globals.Factory.CreateAction method to create a Microsoft.Office.Tools.Word.Action or Microsoft.Office.Tools.Excel.Action object.

Note

This interface is implemented by the Visual Studio Tools for Office runtime. It is not intended to be implemented in your code. For more information, see Visual Studio Tools for Office Runtime Overview.

Usage

This type is intended to be used only in projects for Excel 2007 and Word 2007. Smart tags are deprecated in Excel 2010 and Word 2010.

This documentation describes the version of this type that is used in Office projects that target the .NET Framework 4 or later. In projects that target the .NET Framework 3.5, this type might have different members and the code examples provided for this type might not work. For documentation about this type in projects that target the .NET Framework 3.5, see the following reference section in the Visual Studio 2008 documentation: http://go.microsoft.com/fwlink/?LinkId=160658.

Properties

Caption

Gets or sets the name of the action, as displayed in the smart tag menu. 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..

Applies to