Represents a common dialog box that displays input dialog.
| Windows | macOS | Gnome | |
|---|---|---|---|
| Light |
|
|
|
| Dark |
|
|
|
Public Constructors | |
| input_dialog () | |
| Initializes a new instance of the input_dialog class. | |
Public Properties | |
| auto | character_casing () const noexcept -> xtd::forms::character_casing |
| Gets the character casing. | |
| auto | character_casing (xtd::forms::character_casing value) -> input_dialog & |
| Sets the character casing. | |
| auto | dialog_appearance () const noexcept -> xtd::forms::dialog_appearance |
| Gets the dialog appearance. | |
| auto | dialog_appearance (xtd::forms::dialog_appearance value) -> input_dialog & |
| Sets the dialog appearance. | |
| auto | multiline () const noexcept -> bool |
| Gets multiline status. | |
| auto | multiline (bool value) -> input_dialog & |
| Sets multiline status. | |
| auto | message () const noexcept -> xtd::string |
| Gets the text message. | |
| auto | message (const xtd::string &value) -> input_dialog & |
| Sets the text message. | |
| auto | text () const noexcept -> xtd::string |
| Gets the dialog caption text. | |
| auto | text (const xtd::string &value) -> input_dialog & |
| Sets the dialog caption text. | |
| auto | use_system_password_char () const noexcept -> bool |
| Gets use system password char status. | |
| auto | use_system_password_char (bool value) -> input_dialog & |
| Sets use system password char status. | |
| auto | value () const noexcept -> xtd::string |
| Gets the value. | |
| auto | value (const xtd::string &value) -> input_dialog & |
| Sets the value. | |
| auto | word_wrap () const noexcept -> bool |
| Gets word wrap status. | |
| auto | word_wrap (bool value) -> input_dialog & |
| Sets word wrap status. | |
Public Methods | |
| auto | reset () noexcept -> void override |
| Resets all properties to empty string. | |
Protected Methods | |
| auto | run_dialog (xtd::intptr owner) -> bool override |
| When overridden in a derived class, specifies a common dialog box. | |
| auto | run_sheet (xtd::intptr owner) -> void override |
| When overridden in a derived class, specifies a common dialog box. | |
Additional Inherited Members | |
| xtd::event< common_dialog, xtd::forms::help_event_handler > | help_request |
| Occurs when the user clicks the Help button on a common dialog box. | |
| xtd::event< common_dialog, xtd::forms::dialog_closed_event_handler > | dialog_closed |
| Occurs when the user close a common dialog box with dialog close button or other dialog buttons. | |
| common_dialog () | |
| Initializes a new instance of the common_dialog class. | |
| auto | dialog_result () const noexcept -> xtd::forms::dialog_result |
| Gets async dialog_result result after dialog box is closing. | |
| auto | tag () const noexcept -> const xtd::any_object & |
| Gets an object that contains data about the control. | |
| auto | tag (const xtd::any_object &value) -> common_dialog & |
| Sets an object that contains data about the control. | |
| auto | show_dialog () -> xtd::forms::dialog_result |
| Runs a common dialog box with a default owner. | |
| auto | show_dialog (const iwin32_window &owner) -> xtd::forms::dialog_result |
| Runs a common dialog box with the specified owner. | |
| auto | show_sheet (const iwin32_window &owner) -> void |
| Runs a common dialog box with the specified owner. | |
| auto | show_sheet_dialog (const iwin32_window &owner) -> xtd::forms::dialog_result |
| Runs a common dialog box with the specified owner. | |
| 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. | |
| virtual auto | on_dialog_closed (const xtd::forms::dialog_closed_event_args &e) -> void |
| Raises the common_dialog::dialog_close event. | |
| virtual auto | on_help_request (xtd::forms::help_event_args &e) -> void |
| Raises the common_dialog::help_request event. | |
| auto | set_dialog_result (xtd::forms::dialog_result value) -> void |
| Sets async dialog_result result after dialog box is closing. | |
| component () | |
| Initialises a new instance of the component class. | |
| virtual auto | can_raise_events () const noexcept -> bool |
| Gets a value indicating whether the component can raise an event. | |
| auto | design_mode () const noexcept -> bool |
| Gets a value that indicates whether the component is currently in design mode. | |
| xtd::forms::input_dialog::input_dialog | ( | ) |
Initializes a new instance of the input_dialog class.
|
nodiscardnoexcept |
Gets the character casing.
| auto xtd::forms::input_dialog::character_casing | ( | xtd::forms::character_casing | value | ) | -> input_dialog & |
Sets the character casing.
| value | One of the xtd::forms::character_casing values. The default value is xtd::forms::character_casing::normal. |
|
nodiscardnoexcept |
Gets the dialog appearance.
| auto xtd::forms::input_dialog::dialog_appearance | ( | xtd::forms::dialog_appearance | value | ) | -> input_dialog & |
Sets the dialog appearance.
| value | One of the xtd::forms::dialog_appearance values. The default value is xtd::forms::dialog_appearance::standard. |
|
nodiscardnoexcept |
Gets multiline status.
| auto xtd::forms::input_dialog::multiline | ( | bool | value | ) | -> input_dialog & |
Sets multiline status.
| value | true if dialog text box is multiline; otherwise false. |
|
nodiscardnoexcept |
Gets the text message.
| auto xtd::forms::input_dialog::message | ( | const xtd::string & | value | ) | -> input_dialog & |
|
nodiscardnoexcept |
Gets the dialog caption text.
| auto xtd::forms::input_dialog::text | ( | const xtd::string & | value | ) | -> input_dialog & |
Sets the dialog caption text.
| value | The new dialog caption text. |
|
nodiscardnoexcept |
Gets use system password char status.
| auto xtd::forms::input_dialog::use_system_password_char | ( | bool | value | ) | -> input_dialog & |
Sets use system password char status.
| value | true if dialog text box use system password char status; otherwise false. |
|
nodiscardnoexcept |
Gets the value.
| auto xtd::forms::input_dialog::value | ( | const xtd::string & | value | ) | -> input_dialog & |
|
nodiscardnoexcept |
Gets word wrap status.
| auto xtd::forms::input_dialog::word_wrap | ( | bool | value | ) | -> input_dialog & |
Sets word wrap status.
| value | true if dialog text box is word wrap; otherwise false. |
|
overridevirtualnoexcept |
Resets all properties to empty string.
Implements xtd::forms::common_dialog.
|
overrideprotectedvirtual |
When overridden in a derived class, specifies a common dialog box.
| owner | A value that represents the window handle of the owner window for the common dialog box. |
Implements xtd::forms::common_dialog.
|
overrideprotectedvirtual |
When overridden in a derived class, specifies a common dialog box.
| owner | A value that represents the window handle of the owner window for the common dialog box. |
Implements xtd::forms::common_dialog.