|
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 bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object.
|
|
virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type.
|
|
virtual type_object | get_type () const noexcept |
| Gets the type of the current instance.
|
|
template<typename object_t > |
xtd::uptr< object_t > | memberwise_clone () const |
| Creates a shallow copy of the current object.
|
|
virtual xtd::string | to_string () const noexcept |
| Returns a xtd::string that represents the current object.
|
|
template<typename object_a_t , typename object_b_t > |
static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are considered equal.
|
|
template<typename object_a_t , typename object_b_t > |
static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are the same instance.
|
|
◆ key_event_args() [1/2]
xtd::forms::key_event_args::key_event_args |
( |
| ) |
|
|
default |
◆ key_event_args() [2/2]
Initializes a new instance of the key_event_args class.
- Parameters
-
key_data | A xtd::forms::keys representing the key that was pressed, combined with any modifier flags that indicate which CMD, CTRL, SHIFT, and ALT keys were pressed at the same time. Possible values are obtained by applying the bitwise OR (|) operator to constants from the Keys enumeration. |
◆ alt()
bool xtd::forms::key_event_args::alt |
( |
| ) |
const |
|
inlinenoexcept |
Gets a value indicating whether the ALT key was pressed.
- Returns
- true if the ALT key was pressed; otherwise, false.
◆ command()
bool xtd::forms::key_event_args::command |
( |
| ) |
const |
|
inlinenoexcept |
Gets a value indicating whether the CMD key was pressed.
- Returns
- true if the CMD key was pressed; otherwise, false.
◆ control()
bool xtd::forms::key_event_args::control |
( |
| ) |
const |
|
inlinenoexcept |
Gets a value indicating whether the CTRL key was pressed.
- Returns
- true if the CTRL key was pressed; otherwise, false.
◆ handled() [1/2]
bool xtd::forms::key_event_args::handled |
( |
| ) |
const |
|
inlinenoexcept |
Gets a value indicating whether the event was handled.
- Returns
- true to bypass the control's default handling; otherwise, false to also pass the event along to the default control handler.
◆ handled() [2/2]
void xtd::forms::key_event_args::handled |
( |
bool |
handled | ) |
|
|
inline |
Sets a value indicating whether the event was handled.
- Parameters
-
handled | true to bypass the control's default handling; otherwise, false to also pass the event along to the default control handler. |
◆ key_code()
keys xtd::forms::key_event_args::key_code |
( |
| ) |
const |
|
inlinenoexcept |
◆ key_data()
keys xtd::forms::key_event_args::key_data |
( |
| ) |
const |
|
inlinenoexcept |
◆ key_value()
int32 xtd::forms::key_event_args::key_value |
( |
| ) |
const |
|
inlinenoexcept |
◆ modifiers()
keys xtd::forms::key_event_args::modifiers |
( |
| ) |
const |
|
inlinenoexcept |
◆ shift()
bool xtd::forms::key_event_args::shift |
( |
| ) |
const |
|
inlinenoexcept |
Gets a value indicating whether the SHIFT key was pressed.
- Returns
- true if the SHIFT key was pressed; otherwise, false.
◆ suppress_key_press() [1/2]
bool xtd::forms::key_event_args::suppress_key_press |
( |
| ) |
const |
|
inlinenoexcept |
Gets a value indicating whether the key event should be passed on to the underlying control.
- Returns
- true if the key event should not be sent to the control; otherwise, false.
◆ suppress_key_press() [2/2]
void xtd::forms::key_event_args::suppress_key_press |
( |
bool |
suppress_key_press | ) |
|
|
inline |
Sets a value indicating whether the key event should be passed on to the underlying control.
- Parameters
-
suppress_key_press | true if the key event should not be sent to the control; otherwise, false. |
The documentation for this class was generated from the following file: