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

定义

有关此成员的说明,请参见 TranslateAccelerator(MSG, ModifierKeys)

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

参数

msg
MSG

消息及关联数据。 请勿修改此结构。 仅由于性能原因,通过引用来传递此消息。

modifiers
ModifierKeys

修改键。

返回

Boolean

如果方法实现对该消息进行了处理,则为 true;否则为 false

实现

属性

注解

此成员是显式接口成员的实现。 它只能在 HwndSource 实例被强制转换为 IKeyboardInputSink 接口时使用。

适用于