Represents a common dialog box that displays assert dialog.
Windows | macOS | Gnome | |
---|---|---|---|
Light | | | |
Dark | | | |
Public Events | |
event< assert_dialog, dialog_closed_event_handler > | dialog_closed |
Occurs when the user close an assert dialog box with dialog close button or other dialog buttons. | |
Public Constructors | |
assert_dialog () | |
Initializes a new instance of the assert_dialog class. | |
Public Properties | |
xtd::forms::dialog_result | dialog_result () const noexcept |
Gets async dialog_result result after dialog box is closing. | |
xtd::forms::dialog_appearance | dialog_appearance () const noexcept |
Gets the dialog appearance. | |
assert_dialog & | dialog_appearance (xtd::forms::dialog_appearance dialog_appearance) |
Sets the dialog appearance. | |
xtd::string | message () const noexcept |
Gets the dialog message text. | |
assert_dialog & | message (const xtd::string &value) |
Sets the dialog message text. | |
xtd::diagnostics::stack_frame | stack_frame () const noexcept |
Gets stack frame. | |
assert_dialog & | stack_frame (const xtd::diagnostics::stack_frame &value) |
Sets stack frame. | |
Public Methods | |
void | reset () noexcept |
Resets all properties to empty string. | |
xtd::forms::dialog_result | show_dialog (const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
Runs assert dialog box. | |
xtd::forms::dialog_result | show_dialog (const iwin32_window &owner, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
Runs assert dialog box. | |
void | show_sheet (const iwin32_window &owner, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
Runs assert dialog box. | |
xtd::forms::dialog_result | show_sheet_dialog (const iwin32_window &owner, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current()) |
Runs assert dialog box. | |
Protected Methods | |
void | on_dialog_closed (const dialog_closed_event_args &e) |
Raises the close event. | |
Additional Inherited Members | |
Public Member Functions inherited from xtd::object | |
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. | |
Static Public Member Functions inherited from xtd::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. | |
Protected Member Functions inherited from xtd::forms::component | |
component () | |
Initialises a new instance of the component class. | |
virtual bool | can_raise_events () const noexcept |
Gets a value indicating whether the component can raise an event. | |
bool | design_mode () const noexcept |
Gets a value that indicates whether the component is currently in design mode. | |
xtd::forms::assert_dialog::assert_dialog | ( | ) |
Initializes a new instance of the assert_dialog class.
|
noexcept |
Gets async dialog_result result after dialog box is closing.
|
noexcept |
Gets the dialog appearance.
assert_dialog & xtd::forms::assert_dialog::dialog_appearance | ( | xtd::forms::dialog_appearance | dialog_appearance | ) |
Sets the dialog appearance.
dialog_appearance | One of the xtd::forms::dialog_appearance values. The default value is xtd::forms::dialog_appearance::standard. |
|
noexcept |
assert_dialog & xtd::forms::assert_dialog::message | ( | const xtd::string & | value | ) |
Sets the dialog message text.
value | The new dialog message text. |
|
noexcept |
assert_dialog & xtd::forms::assert_dialog::stack_frame | ( | const xtd::diagnostics::stack_frame & | value | ) |
Sets stack frame.
value | The stack frame. |
|
noexcept |
Resets all properties to empty string.
xtd::forms::dialog_result xtd::forms::assert_dialog::show_dialog | ( | const xtd::diagnostics::stack_frame & | stack_frame = xtd::diagnostics::stack_frame::current() | ) |
Runs assert dialog box.
xtd::forms::dialog_result xtd::forms::assert_dialog::show_dialog | ( | const iwin32_window & | owner, |
const xtd::diagnostics::stack_frame & | stack_frame = xtd::diagnostics::stack_frame::current() |
||
) |
Runs assert dialog box.
void xtd::forms::assert_dialog::show_sheet | ( | const iwin32_window & | owner, |
const xtd::diagnostics::stack_frame & | stack_frame = xtd::diagnostics::stack_frame::current() |
||
) |
Runs assert dialog box.
xtd::forms::dialog_result xtd::forms::assert_dialog::show_sheet_dialog | ( | const iwin32_window & | owner, |
const xtd::diagnostics::stack_frame & | stack_frame = xtd::diagnostics::stack_frame::current() |
||
) |
Runs assert dialog box.
|
protected |
Raises the close event.
e | An assert_dialog_closed_event_args that provides the event data. |
event<assert_dialog, dialog_closed_event_handler> xtd::forms::assert_dialog::dialog_closed |
Occurs when the user close an assert dialog box with dialog close button or other dialog buttons.