SmartTagBase.Caption 속성

스마트 태그의 이름을 가져옵니다.이 형식 또는 멤버는 2007 Microsoft Office system용 프로젝트에서만 사용할 수 있습니다. Office 2010에서 스마트 태그는 더 이상 사용되지 않습니다.
.

네임스페이스:  Microsoft.Office.Tools
어셈블리:  Microsoft.Office.Tools.Common(Microsoft.Office.Tools.Common.dll)

구문

‘선언
ReadOnly Property Caption As String
string Caption { get; }

속성 값

형식: System.String
스마트 태그의 이름입니다.

설명

스마트 태그의 이름은 스마트 태그 메뉴의 맨 위에 표시됩니다.

예제

다음 코드 예제에서는 Action.Click 이벤트에 대한 처리기를 보여 줍니다.이 이벤트 처리기는 Caption 속성을 사용하여 스마트 태그의 이름을 표시합니다.이 코드 예제는 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 + "'.");
}

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

SmartTagBase 인터페이스

Microsoft.Office.Tools 네임스페이스