KeyPressEventArgs Class
Definition
Section titled “Definition”Event arguments to indicate that a key is being pressed on a control that allows keyboard key cancelling.
public class KeyPressEventArgs : EventArgsInheritance object → EventArgs
Constructors
Section titled “Constructors”KeyPressEventArgs(AsciiKey)
Section titled “KeyPressEventArgs(AsciiKey)”Creates a new event args object.
public KeyPressEventArgs(AsciiKey key)Parameters
Section titled “Parameters”key AsciiKey
The key being pressed.
Fields
Section titled “Fields”The key being pressed by the textbox.
public readonly AsciiKey KeyProperties
Section titled “Properties”IsCancelled
Section titled “IsCancelled”When set to true, causes the textbox to cancel the key press.
public bool IsCancelled { get; set; }