AutomationPeer.GetAcceleratorKeyCore Method

Definition

在派生类中重写时,由 GetAcceleratorKey() 调用。When overridden in a derived class, is called by GetAcceleratorKey().

protected:
 abstract System::String ^ GetAcceleratorKeyCore();
protected abstract string GetAcceleratorKeyCore ();
abstract member GetAcceleratorKeyCore : unit -> string
Protected MustOverride Function GetAcceleratorKeyCore () As String

Returns

String

加速键。The accelerator key.

Remarks

如果应用程序响应键盘事件以提供快捷键行为,则它应返回包含键盘快捷键组合的字符串。If an application responds to keyboard events to provide shortcut key behavior, it should return a string that contains the keyboard shortcut combination. 例如,对于可以将文本复制到剪贴板的元素,此附加属性可能设置为值 "CTRL + C"。For example, for an element that can copy text to the clipboard, this attached property might be set to the value "CTRL+C".

Applies to

See also