ProcessKeyboardAcceleratorEventArgs 类

定义

ProcessKeyboardAccelerators 事件提供事件数据。

public ref class ProcessKeyboardAcceleratorEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ProcessKeyboardAcceleratorEventArgs final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ProcessKeyboardAcceleratorEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ProcessKeyboardAcceleratorEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ProcessKeyboardAcceleratorEventArgs
Public NotInheritable Class ProcessKeyboardAcceleratorEventArgs
继承
Object Platform::Object IInspectable ProcessKeyboardAcceleratorEventArgs
属性

Windows 要求

设备系列
Windows 10 Fall Creators Update (在 10.0.16299.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v5.0 中引入)

属性

Handled

获取或设置一个值,该值将事件标记为已处理。

Key

获取虚拟键 (与键盘快捷方式 (快捷键) 的一个或多个修饰键) 结合使用。

当按下与快捷方式关联的修饰键,然后同时按下非修饰键时,将调用键盘快捷方式。 例如,Ctrl+C 用于复制,Ctrl+S 用于保存。

Modifiers

获取用于修改键盘快捷方式的另一个按键的虚拟键 (快捷键) 。

当按下与快捷方式关联的修饰键,然后同时按下非修饰键时,将调用键盘快捷方式。 例如,Ctrl+C 用于复制,Ctrl+S 用于保存。

适用于

另请参阅