ElementHost.ProcessMnemonic(Char) 方法
定義
處理助憶鍵字元,確保所裝載的項目在正常 Windows FormsWindows Forms 處理之前,有機會先處理這個助憶鍵。Processes a mnemonic character, ensuring that the hosted element has an opportunity to handle the mnemonic before normal Windows FormsWindows Forms processing.
protected:
override bool ProcessMnemonic(char charCode);
protected override bool ProcessMnemonic (char charCode);
override this.ProcessMnemonic : char -> bool
Protected Overrides Function ProcessMnemonic (charCode As Char) As Boolean
參數
- charCode
- Char
要處理的字元。The character to process.
傳回
如果字元是 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 快速鍵,就是 true
,否則就是 false
。true
if the character is a Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) shortcut key; otherwise, false
.
備註
如果裝載的專案未處理金鑰訊息,則會將 WPFWPF 它轉送至類別階層 Windows FormsWindows Forms 以進行處理。If a key message is not handled by the hosted WPFWPF element, it is forwarded up the Windows FormsWindows Forms class hierarchy for processing.