Share via


_CommandBarButton.ShortcutText Property

Returns or sets the shortcut key text displayed next to a button control when the button appears on a menu, submenu, or shortcut menu.

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

Syntax

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

value = instance.ShortcutText

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

Property Value

Type: System.String

Remarks

You can set this property only for command bar buttons that contain an OnAction macro.

See Also

Reference

_CommandBarButton Interface

_CommandBarButton Members

Microsoft.Office.Core Namespace