HwndSource.IKeyboardInputSink.TranslateChar(MSG, ModifierKeys) 方法

定義

如需這個成員的說明,請參閱 TranslateChar(MSG, ModifierKeys)

C#
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
bool IKeyboardInputSink.TranslateChar (ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);
C#
[System.Security.SecurityCritical]
bool IKeyboardInputSink.TranslateChar (ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);
C#
bool IKeyboardInputSink.TranslateChar (ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);

參數

msg
MSG

訊息及相關聯資料。 請勿修改這個結構。 參考僅基於效能考量而傳送它。

modifiers
ModifierKeys

輔助按鍵 (Modifier Key)。

傳回

Boolean

如果已處理訊息則為 true,此時不應呼叫 OnMnemonic(MSG, ModifierKeys),否則為 false

實作

屬性

備註

這個成員是明確介面成員實作, 只有在 HwndSource 執行個體轉換成 IKeyboardInputSink 介面時,才能使用這個成員。

適用於

產品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7