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

定义

有关此成员的说明,请参见 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;
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
bool IKeyboardInputSink.TranslateChar (ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);
[System.Security.SecurityCritical]
bool IKeyboardInputSink.TranslateChar (ref System.Windows.Interop.MSG msg, System.Windows.Input.ModifierKeys modifiers);
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

修改键。

返回

Boolean

如果消息已处理并且不应调用 OnMnemonic(MSG, ModifierKeys),则为 true;否则为 false

实现

属性

注解

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

适用于