KeyPressEventArgs 成员

KeyPress 事件提供数据。

下表列出了由 KeyPressEventArgs 类型公开的成员。

公共构造函数

  名称 说明
Public method Supported by the .NET Compact Framework KeyPressEventArgs 初始化 KeyPressEventArgs 类的新实例。

页首

公共属性

  名称 说明
Public property Supported by the .NET Compact Framework Handled 获取或设置一个值,该值指示是否处理过 KeyPress 事件。
Public property Supported by the .NET Compact Framework KeyChar 获取或设置与按下的键对应的字符。

页首

公共方法

(请参见 受保护的方法 )

  名称 说明
Public method Supported by the .NET Compact Framework Equals  已重载。 确定两个 Object 实例是否相等。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework GetHashCode  用作特定类型的哈希函数。GetHashCode 适合在哈希算法和数据结构(如哈希表)中使用。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework GetType  获取当前实例的 Type。 (从 Object 继承。)
Public method Static Supported by the .NET Compact Framework ReferenceEquals  确定指定的 Object 实例是否是相同的实例。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework ToString  返回表示当前 ObjectString。 (从 Object 继承。)

页首

受保护的方法

  名称 说明
Protected method Supported by the .NET Compact Framework Finalize  允许 Object 在“垃圾回收”回收 Object 之前尝试释放资源并执行其他清理操作。 (从 Object 继承。)
Protected method Supported by the .NET Compact Framework MemberwiseClone  创建当前 Object 的浅表副本。 (从 Object 继承。)

页首

请参见

参考

KeyPressEventArgs 类
System.Windows.Forms 命名空间
OnKeyPress
Control.KeyPress 事件
KeyEventArgs 类
Control.KeyDown 事件
Control.KeyUp 事件
Control.ModifierKeys 属性