WebBrowser.IKeyboardInputSink.TranslateAccelerator(MSG, ModifierKeys) 方法
定义
有关此成员的说明,请参见 TranslateAccelerator(MSG, ModifierKeys)。For a description of this member, see 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>]
[<System.Security.SecurityTreatAsSafe>]
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
消息及关联数据。The message and associated data. 请勿修改此结构。Do not modify this structure. 仅由于性能原因,通过引用来传递此消息。It is passed by reference for performance reasons only.
- modifiers
- ModifierKeys
修改键。Modifier keys.
返回
如果方法实现对该消息进行了处理,则为 true;否则为 false。true if the message was handled by the method implementation; otherwise, false.
实现
- 属性
注解
此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 WebBrowser 实例被强制转换为 IKeyboardInputSink 接口时使用。It can be used only when the WebBrowser instance is cast to an IKeyboardInputSink interface.