SmartTagBase.Caption, propriété

Obtient le nom de la balise active.

Espace de noms :  Microsoft.Office.Tools
Assembly :  Microsoft.Office.Tools.Common (dans Microsoft.Office.Tools.Common.dll)

Syntaxe

'Déclaration
ReadOnly Property Caption As String
    Get
string Caption { get; }

Valeur de propriété

Type : System.String
Nom de la balise active.

Notes

Nom de la balise active qui est affiché en haut du menu Balise active.

Exemples

L'exemple de code suivant illustre un gestionnaire pour l'événement Action.Click. Le gestionnaire d'événements utilise la propriété Caption pour afficher le nom de la balise active. Cet exemple de code fait partie d'un exemple plus complet, fourni pour Microsoft.Office.Tools.Excel.SmartTag.

' This action displays smart tag details.
Private Sub Action2_Click(ByVal sender As Object,
    ByVal e As Microsoft.Office.Tools.Excel.ActionEventArgs) Handles Action2.Click
    MessageBox.Show("The current smart tag caption is '" &
    smartTagDemo.Caption & "'. The current smart tag type is '" &
    smartTagDemo.SmartTagType & "'.")
End Sub
// 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 + "'.");
}

Sécurité .NET Framework

Voir aussi

Référence

SmartTagBase Interface

Microsoft.Office.Tools, espace de noms