Właściwość SmartTagBase.Caption —

Pobiera nazwę tagu inteligentnego.Ten typ lub element członkowski jest przeznaczony do stosowania wyłącznie w projektach dla systemu Microsoft Office 2007. W systemie Office 2010 tagi inteligentne nie są już używane.
.

Przestrzeń nazw:  Microsoft.Office.Tools
Zestaw:  Microsoft.Office.Tools.Common (w Microsoft.Office.Tools.Common.dll)

Składnia

'Deklaracja
ReadOnly Property Caption As String
string Caption { get; }

Wartość właściwości

Typ: System.String
Nazwa tagu inteligentnego.

Uwagi

Nazwa tagu inteligentnego jest wyświetlana u góry menu tagu inteligentnego.

Przykłady

Poniższy przykład kodu demonstruje obsługi dla Action.Click zdarzenia.Obsługa zdarzeń używa Caption właściwość, aby wyświetlić nazwę tagu inteligentnego.Poniższy przykład kodu jest częścią większy przykład przewidziane 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 + "'.");
}

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

SmartTagBase Interfejs

Przestrzeń nazw Microsoft.Office.Tools