Share via


_CommandBarButton.Caption Property

Returns or sets the caption text for a command bar control.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Property Caption As String
    Get
    Set
'Usage
Dim instance As _CommandBarButton
Dim value As String

value = instance.Caption

instance.Caption = value
string Caption { get; set; }

Property Value

Type: System.String

Implements

CommandBarControl.Caption

Remarks

A control's caption is also displayed as its default ScreenTip.

See Also

Reference

_CommandBarButton Interface

_CommandBarButton Members

Caption Overload

Microsoft.Office.Core Namespace