SmartTagBase.Caption Property


Gets the name of the smart tag.

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.


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

string Caption { get; }

Property Value

Type: System.String

The name of the smart tag.

The name of the smart tag is displayed at the top of the smart tag menu.

The following code example demonstrates a handler for the Action.Click event. The event handler uses the Caption property to display the name of the smart tag. This code example is part of a larger example provided for Microsoft.Office.Tools.Excel.SmartTag.

// This action displays smart tag details.
private void Action2_Click(object sender,
    Microsoft.Office.Tools.Excel.ActionEventArgs e)
    MessageBox.Show("The current smart tag caption is '" +
        smartTagDemo.Caption + "'. The current smart tag type is '" +
        smartTagDemo.SmartTagType + "'.");
Return to top