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 |
|
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.