共用方式為


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

定義

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

 virtual bool System.Windows.Interop.IKeyboardInputSink.OnMnemonic(System::Windows::Interop::MSG % msg, System::Windows::Input::ModifierKeys modifiers) = System::Windows::Interop::IKeyboardInputSink::OnMnemonic;
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
bool IKeyboardInputSink.OnMnemonic (ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);
[System.Security.SecurityCritical]
bool IKeyboardInputSink.OnMnemonic (ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);
bool IKeyboardInputSink.OnMnemonic (ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
abstract member System.Windows.Interop.IKeyboardInputSink.OnMnemonic : MSG * System.Windows.Input.ModifierKeys -> bool
override this.System.Windows.Interop.IKeyboardInputSink.OnMnemonic : MSG * System.Windows.Input.ModifierKeys -> bool
[<System.Security.SecurityCritical>]
abstract member System.Windows.Interop.IKeyboardInputSink.OnMnemonic : MSG * System.Windows.Input.ModifierKeys -> bool
override this.System.Windows.Interop.IKeyboardInputSink.OnMnemonic : MSG * System.Windows.Input.ModifierKeys -> bool
abstract member System.Windows.Interop.IKeyboardInputSink.OnMnemonic : MSG * System.Windows.Input.ModifierKeys -> bool
override this.System.Windows.Interop.IKeyboardInputSink.OnMnemonic : MSG * System.Windows.Input.ModifierKeys -> bool
Function OnMnemonic (ByRef msg As MSG, modifiers As ModifierKeys) As Boolean Implements IKeyboardInputSink.OnMnemonic

參數

msg
MSG

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

modifiers
ModifierKeys

輔助按鍵 (Modifier Key)。

傳回

Boolean

如果已處理訊息,則為 true;否則為 false

實作

屬性

備註

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

適用於