Share via


ActionBase Interface

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

Namespace:  Microsoft.Office.Tools
Assembly:  Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)

Syntax

'Declaration
<GuidAttribute("fb74efb9-1a89-41cd-805e-02ac50bd5021")> _
Public Interface ActionBase
[GuidAttribute("fb74efb9-1a89-41cd-805e-02ac50bd5021")]
public interface ActionBase

The ActionBase type exposes the following members.

Properties

  Name Description
Public property Caption Gets or sets the name of the action, as displayed in the smart tag menu.

Top

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. For more information, see Smart Tags Architecture.

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. For more information, see Smart Tags Overview.

This documentation describes the version of this type that is used in Office projects that target the .NET Framework 4. 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: https://go.microsoft.com/fwlink/?LinkId=160658.

See Also

Reference

Microsoft.Office.Tools Namespace

Other Resources

Smart Tags Architecture