Provides data for the xtd::forms::control::key_press event.
Public Constructors | |
| key_press_event_args ()=default | |
| Initializes a new instance of the KeyPressEventArgs class. | |
| key_press_event_args (char32 key_char) | |
| Initializes a new instance of the KeyPressEventArgs class. | |
Public Properties | |
| bool | handled () const noexcept |
| Gets a value indicating whether the xtd::forms::control::key_press event was handled. | |
| void | handled (bool handled) |
| Sets a value indicating whether the xtd::forms::control::key_press event was handled. | |
| char32 | key_char () const noexcept |
| Gets the character corresponding to the key pressed. | |
| void | key_char (char32 key_char) |
| Sets the character corresponding to the key pressed. | |
Additional Inherited Members | |
| static const event_args | empty |
| Provides a value to use with events that do not have event data. | |
| event_args ()=default | |
| Initializes a new instance of the event_args class. | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual auto | equals (const object &obj) const noexcept -> bool |
| Determines whether the specified object is equal to the current object. | |
| virtual auto | get_hash_code () const noexcept -> xtd::usize |
| Serves as a hash function for a particular type. | |
| virtual auto | get_type () const noexcept -> type_object |
| Gets the type of the current instance. | |
| template<typename object_t> | |
| auto | memberwise_clone () const -> xtd::unique_ptr_object< object_t > |
| Creates a shallow copy of the current object. | |
| virtual auto | to_string () const -> xtd::string |
| Returns a xtd::string that represents the current object. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are considered equal. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are the same instance. | |
|
default |
Initializes a new instance of the KeyPressEventArgs class.
|
inlineexplicit |
Initializes a new instance of the KeyPressEventArgs class.
| key_char | The ASCII character corresponding to the key the user pressed. |
|
inlinenoexcept |
Gets a value indicating whether the xtd::forms::control::key_press event was handled.
|
inline |
Sets a value indicating whether the xtd::forms::control::key_press event was handled.
| handled | true if the event is handled; otherwise, false. |
|
inlinenoexcept |
Gets the character corresponding to the key pressed.
|
inline |
Sets the character corresponding to the key pressed.
| key_char | The ASCII character that is composed. For example, if the user presses SHIFT + K, this property returns an uppercase K. |