HwndSource.IKeyboardInputSink.TranslateChar(MSG, ModifierKeys) 方法
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如需這個成員的說明,請參閱 TranslateChar(MSG, ModifierKeys)。
virtual bool System.Windows.Interop.IKeyboardInputSink.TranslateChar(System::Windows::Interop::MSG % msg, System::Windows::Input::ModifierKeys modifiers) = System::Windows::Interop::IKeyboardInputSink::TranslateChar;
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);
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
abstract member System.Windows.Interop.IKeyboardInputSink.TranslateChar : MSG * System.Windows.Input.ModifierKeys -> bool
override this.System.Windows.Interop.IKeyboardInputSink.TranslateChar : MSG * System.Windows.Input.ModifierKeys -> bool
[<System.Security.SecurityCritical>]
abstract member System.Windows.Interop.IKeyboardInputSink.TranslateChar : MSG * System.Windows.Input.ModifierKeys -> bool
override this.System.Windows.Interop.IKeyboardInputSink.TranslateChar : MSG * System.Windows.Input.ModifierKeys -> bool
abstract member System.Windows.Interop.IKeyboardInputSink.TranslateChar : MSG * System.Windows.Input.ModifierKeys -> bool
override this.System.Windows.Interop.IKeyboardInputSink.TranslateChar : MSG * System.Windows.Input.ModifierKeys -> bool
Function TranslateChar (ByRef msg As MSG, modifiers As ModifierKeys) As Boolean Implements IKeyboardInputSink.TranslateChar
- msg
- MSG
訊息及相關聯資料。 請勿修改這個結構。 參考僅基於效能考量而傳送它。
- modifiers
- ModifierKeys
輔助按鍵 (Modifier Key)。
如果已處理訊息則為 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 |