xtd 0.2.0
Loading...
Searching...
No Matches

◆ dialog_result() [1/2]

forms::dialog_result xtd::forms::button::dialog_result ( ) const
overridevirtualnoexcept

Gets the value returned to the parent form when the button is clicked.

Returns
One of the xtd::forms::dialog_result values. The default value is xtd::forms::dialog_result::none.
Remarks
When a form is shown as a dialog box using the xtd::forms::form::show_dialog method and one of its buttons is clicked, the button's xtd::forms::dialog_result value is assigned to the form's xtd::forms::dialog_result property.

Implements xtd::forms::ibutton_control.