Share via


RibbonTab.KeyTip Property

Gets or sets the keyboard shortcut for the control.

Namespace:  Microsoft.Windows.Controls.Ribbon
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Public Property KeyTip As String
public string KeyTip { get; set; }
public:
property String^ KeyTip {
    String^ get ();
    void set (String^ value);
}
member KeyTip : string with get, set
function get KeyTip () : String
function set KeyTip (value : String)

Property Value

Type: System.String
The keyboard shortcut for the control. The registered default is nulla null reference (Nothing in Visual Basic). For more information about what can influence the value, see Dependency Property Value Precedence.

Dependency Property Information

Identifier field

KeyTipProperty

Metadata properties set to true

None

Remarks

A KeyTip must be from 1 to 3 uppercase characters, and must not contain spaces, tabs, or newline characters.

KeyTips are sometimes known as access keys or accelerators and are used as shortcut key combinations that activate controls. KeyTips appear on the Ribbon when you press the ALT key.

.NET Framework Security

See Also

Reference

RibbonTab Class

Microsoft.Windows.Controls.Ribbon Namespace