xtd 0.2.0
Loading...
Searching...
No Matches
xtd::forms::native::replace_dialog Class Referencefinal
Inheritance diagram for xtd::forms::native::replace_dialog:
xtd::static_object

Definition

Contains replace dialog native API.

Namespace
xtd::forms::native
Library
xtd.forms.native
Warning
Internal use only

Protected Static Methods

static intptr create (intptr hwnd, const std::optional< xtd::drawing::point > &location, const xtd::string &title, const xtd::string &find_string, const xtd::string &replace_string, bool show_whole_word, bool show_match_case, bool whole_word, bool match_case, xtd::delegate< void(const xtd::drawing::point &, const xtd::string &, const xtd::string &, bool, bool)> find_next, xtd::delegate< void(const xtd::drawing::point &, const xtd::string &, const xtd::string &, bool, bool, bool)> replace, xtd::delegate< void()> dialog_closed)
 Creates replace dialog.
 
static void close (intptr dialog)
 Hides replace dialog.
 
static void destroy (intptr dialog)
 Destroy replace dialog.
 
static void show (intptr &dialog)
 Shows replace dialog.
 

Member Function Documentation

◆ create()

static intptr xtd::forms::native::replace_dialog::create ( intptr  hwnd,
const std::optional< xtd::drawing::point > &  location,
const xtd::string title,
const xtd::string find_string,
const xtd::string replace_string,
bool  show_whole_word,
bool  show_match_case,
bool  whole_word,
bool  match_case,
xtd::delegate< void(const xtd::drawing::point &, const xtd::string &, const xtd::string &, bool, bool)>  find_next,
xtd::delegate< void(const xtd::drawing::point &, const xtd::string &, const xtd::string &, bool, bool, bool)>  replace,
xtd::delegate< void()>  dialog_closed 
)
staticprotected

Creates replace dialog.

Parameters
hwndWindow handle.
locationThe xtd::drawing::point class that define the location of the replace dialog. If no value, the default system location is used.
titleA string that specifies the title bar caption to display.
find_stringA string that specifies the text to find.
replace_stringA string that specifies the replaced text.
show_whole_wordA boolean that specifies the visibility of whole word option.
show_match_caseA boolean that specifies the visibility of watch case option.
whole_wordA boolean that specifies the whole word option is checked.
show_match_caseA boolean that specifies the match case option is checked.
find_nextA delegate that will be invoked when find button is clicked.
replaceA delegate that will be invoked when replace and replace all buttons are clicked.
dialog_closedA delegate that will be invoked when the dialog is closed.
returnThe replace dialog handle.
Warning
Internal use only

◆ close()

static void xtd::forms::native::replace_dialog::close ( intptr  dialog)
staticprotected

Hides replace dialog.

Parameters
dialogFind dialog handle.
Warning
Internal use only

◆ destroy()

static void xtd::forms::native::replace_dialog::destroy ( intptr  dialog)
staticprotected

Destroy replace dialog.

Parameters
dialogFind dialog handle.
Warning
Internal use only

◆ show()

static void xtd::forms::native::replace_dialog::show ( intptr dialog)
staticprotected

Shows replace dialog.

Parameters
dialogFind dialog handle.
Warning
Internal use only

The documentation for this class was generated from the following file: