Show / Hide Table of Contents

Class KeyPressEventArgs

Event arguments to indicate that a key is being pressed on a control that allows keyboard key cancelling.

Inheritance
object
EventArgs
KeyPressEventArgs
Inherited Members
EventArgs.Empty
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: SadConsole.UI
Assembly: SadConsole.dll
Syntax
public class KeyPressEventArgs : EventArgs

Constructors

KeyPressEventArgs(AsciiKey)

Creates a new event args object.

Declaration
public KeyPressEventArgs(AsciiKey key)
Parameters
Type Name Description
AsciiKey key

The key being pressed.

Fields

Key

The key being pressed by the textbox.

Declaration
public readonly AsciiKey Key
Field Value
Type Description
AsciiKey

Properties

IsCancelled

When set to true, causes the textbox to cancel the key press.

Declaration
public bool IsCancelled { get; set; }
Property Value
Type Description
bool

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX