RibbonToggleButton.KeyTip 属性

获取或设置控件的键盘快捷键。

命名空间:  Microsoft.Windows.Controls.Ribbon
程序集:  RibbonControlsLibrary(在 RibbonControlsLibrary.dll 中)

语法

声明
Public Property KeyTip As String
    Get
    Set
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)

属性值

类型:System.String
控件的键盘快捷键。注册的默认值为 nullnull 引用(在 Visual Basic 中为 Nothing)。有关可以影响值的因素的更多信息,请参见 依赖项属性值优先级

依赖项属性信息

标识符字段

KeyTipProperty

设置为 true 的元数据属性

备注

KeyTip 必须包含 1 到 3 个大写字符,不能包含空格、制表符或换行符。

KeyTip 有时称为访问键或快捷键,用作激活控件的快捷组合键。 按下 Alt 键时,KeyTip 显示在 Ribbon 上。

.NET Framework 安全性

请参见

参考

RibbonToggleButton 类

Microsoft.Windows.Controls.Ribbon 命名空间