HwndSource.OnMnemonicCore Method (MSG, ModifierKeys)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Called when one of the mnemonics (access keys) for this sink is invoked.

Namespace:   System.Windows.Interop
Assembly:  PresentationCore (in PresentationCore.dll)

[SecurityCriticalAttribute]
[UIPermissionAttribute(SecurityAction.LinkDemand, Unrestricted = true)]
protected virtual bool OnMnemonicCore(
	ref MSG msg,
	ModifierKeys modifiers
)

Parameters

msg
Type: System.Windows.Interop.MSG

The message for the mnemonic and associated data.

modifiers
Type: System.Windows.Input.ModifierKeys

Modifier keys.

Return Value

Type: System.Boolean

true if the message was handled; otherwise, false.

Exception Condition
ArgumentException

msg is not WM_KEYDOWN, WM_SYSKEYDOWN, WM_CHAR, or WM_DEADCHAR.

UIPermission

to call this method. Associated enumeration: AllWindows

.NET Framework
Available since 4.0
Return to top
Show: