Export (0) Print
Expand All

SmartTagBase.Caption Property

Gets the name of the smart tag.

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 + "'.");
}


Community Additions

ADD
Show:
© 2014 Microsoft