Represents a dialog box that displays find dialog.
- Header
#include <xtd/forms/replace_dialog>
- Namespace
- xtd::forms
- Library
- xtd.forms
- Appearance
| Windows | macOS | Gnome |
Light |
html dialog_replace_dialog_m.png html dialog_replace_dialog_g.png
|
Dark |
html dialog_replace_dialog_md.png html dialog_replace_dialog_gd.png
|
- Examples
- The following code example demonstrates the use of replace_dialog dialog.
#include <xtd/forms/application>
#include <xtd/forms/button>
#include <xtd/forms/debug_form>
#include <xtd/forms/form>
#include <xtd/forms/replace_dialog>
#include <xtd/diagnostics/debug>
class form1 :
public form {
public:
form1() {
text(
"Replace dialog example");
replace_button.parent(*this);
replace_button.text("replace...");
replace_button.location({10, 10});
replace_button.click += [&] {
};
};
};
};
}
private:
};
auto main()->int {
}
- Examples:
- replace_dialog.cpp.
|
| object ()=default |
| Create a new instance of the ultimate base class object. More...
|
|
bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. More...
|
|
virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type. More...
|
|
virtual type_object | get_type () const noexcept |
| Gets the type of the current instance. More...
|
|
template<typename object_t > |
std::unique_ptr< object_t > | memberwise_clone () const noexcept |
| Creates a shallow copy of the current object. More...
|
|
virtual xtd::ustring | to_string () const noexcept |
| Returns a sxd::ustring that represents the current object. More...
|
|
static bool | equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are considered equal. More...
|
|
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are the same instance. More...
|
|
| component () |
| Initialises a new instance of the component class. More...
|
|
virtual bool | can_raise_events () const noexcept |
| Gets a value indicating whether the component can raise an event. More...
|
|
bool | design_mode () const noexcept |
| Gets a value that indicates whether the component is currently in design mode. More...
|
|
◆ replace_dialog()
xtd::forms::replace_dialog::replace_dialog |
( |
| ) |
|
◆ close()
void xtd::forms::replace_dialog::close |
( |
| ) |
|
Closes the find dialog box.
◆ find_string() [1/2]
const xtd::ustring& xtd::forms::replace_dialog::find_string |
( |
| ) |
const |
|
noexcept |
◆ find_string() [2/2]
Sets the string to find.
- Parameters
-
- Returns
- Current replace_dialog instance.
◆ location() [1/2]
Gets the coordinates of the upper-left corner of the dialog relative to the upper-left corner of the screen.
- Returns
- The point that represents the upper-left corner of the dialog relative to the upper-left corner of its screen.
◆ location() [2/2]
Sets the coordinates of the upper-left corner of the dialog relative to the upper-left corner of the screen.
- Parameters
-
value | The point that represents the upper-left corner of the dialog relative to the upper-left corner of its screen. |
- Returns
- Current replace_dialog instance.
◆ match_case() [1/2]
bool xtd::forms::replace_dialog::match_case |
( |
| ) |
const |
|
noexcept |
Gets the match case value.
- Returns
- true if match case option selected; otherwise false. The default is false.
◆ match_case() [2/2]
Sets the match case value.
- Parameters
-
value | true if match case option selected; otherwise false. The default is false. |
- Returns
- Current replace_dialog instance.
◆ replace_string() [1/2]
const xtd::ustring& xtd::forms::replace_dialog::replace_string |
( |
| ) |
const |
|
noexcept |
◆ replace_string() [2/2]
Sets the replaced string.
- Parameters
-
value | The replaced string. |
- Returns
- Current replace_dialog instance.
◆ reset()
void xtd::forms::replace_dialog::reset |
( |
| ) |
|
|
noexcept |
Resets all properties to default values.
◆ show()
void xtd::forms::replace_dialog::show |
( |
const iwin32_window & |
owner | ) |
|
◆ show_match_case() [1/2]
bool xtd::forms::replace_dialog::show_match_case |
( |
| ) |
const |
|
noexcept |
Gets a value that indicates whether match case option is shown.
- Returns
- true if match case option is shown; otherwise false. The default is true.
◆ show_match_case() [2/2]
replace_dialog& xtd::forms::replace_dialog::show_match_case |
( |
bool |
value | ) |
|
Sets a value that indicates whether match case option is shown.
- Parameters
-
value | true if match case option is shown; otherwise false. The default is true. |
- Returns
- Current replace_dialog instance.
◆ show_whole_word() [1/2]
bool xtd::forms::replace_dialog::show_whole_word |
( |
| ) |
const |
|
noexcept |
Gets a value that indicates whether whole word option is shown.
- Returns
- true if whole word option is shown; otherwise false. The default is true.
◆ show_whole_word() [2/2]
replace_dialog& xtd::forms::replace_dialog::show_whole_word |
( |
bool |
value | ) |
|
Sets a value that indicates whether whole word option is shown.
- Parameters
-
value | true if whole word option is shown; otherwise false. The default is true. |
- Returns
- Current replace_dialog instance.
◆ title() [1/2]
const xtd::ustring& xtd::forms::replace_dialog::title |
( |
| ) |
const |
|
noexcept |
◆ title() [2/2]
Sets the find dialog title.
- Parameters
-
value | The find dialog title. |
- Returns
- Current replace_dialog instance.
◆ whole_word() [1/2]
bool xtd::forms::replace_dialog::whole_word |
( |
| ) |
const |
|
noexcept |
Gets the whole word value.
- Returns
- true if whole word option selected; otherwise false. The default is false.
◆ whole_word() [2/2]
Sets the whole word value.
- Parameters
-
value | true if whole word option selected; otherwise false. The default is false. |
- Returns
- Current replace_dialog instance.
◆ dialog_closed
Occurs when the user close the replace dialog box with dialog close button or cancel button.
◆ find_next
◆ replace
◆ replace_all
The documentation for this class was generated from the following file: