Freigeben über


ActionBase Interface

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

Namespace:  Microsoft.Office.Tools
Assemblies:   Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)
  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.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. 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.
.

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.

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 and the .NET Framework 4.5. 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