CharacterReceivedEventArgs 类

定义

包含 InputKeyboardSource.CharacterReceived 事件的事件数据。

public ref class CharacterReceivedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65540)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class CharacterReceivedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65540)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class CharacterReceivedEventArgs
Public NotInheritable Class CharacterReceivedEventArgs
继承
Object Platform::Object IInspectable CharacterReceivedEventArgs
属性

注解

启用 输入法编辑器 (输入法) 时,应用不会收到此事件。 输入法编辑器 (输入法) 处理所有键盘输入并将 Handled 设置为 true。

属性

Handled

获取或设置是否处理了 InputKeyboardSource.CharacterReceived 事件。

KeyCode

获取输入队列接收的字符的虚拟键代码。

KeyStatus

获取引发字符接收事件的物理按键的状态。

适用于