Method Execute
Execute(ISearch, bool, bool)
When implemented by a class, initializes and runs a search dialog box.
bool Execute(ISearch search, bool isModal, bool isReplace)
Parameters
search
ISearchSpecifies
ISearch
interface owning the dialog.isModal
boolIndicates whether search dialog should appear in modal state.
isReplace
boolIndicates whether search or replace dialog should be executed.
Returns
- bool
DialogResult.OK if the user clicks OK in the dialog box; otherwise, DialogResult.Cancel.
Execute(ISearch, bool, bool, Window)
When implemented by a class, initializes and runs a search dialog box.
bool Execute(ISearch search, bool isModal, bool isReplace, Window owner)
Parameters
search
ISearchSpecifies
ISearch
interface owning the dialog.isModal
boolIndicates whether search dialog should appear in modal state.
isReplace
boolIndicates whether search or replace dialog should be executed.
owner
WindowAny object that implements IWin32Window that represents the top-level window that will own the modal dialog box.
Returns
- bool
DialogResult.OK if the user clicks OK in the dialog box; otherwise, DialogResult.Cancel.
Execute(ISearch, bool, bool, OwnerWindow)
When implemented by a class, initializes and runs a search dialog box.
bool Execute(ISearch search, bool isModal, bool isReplace, OwnerWindow owner)
Parameters
search
ISearchSpecifies
ISearch
interface owning the dialog.isModal
boolIndicates whether search dialog should appear in modal state.
isReplace
boolIndicates whether search or replace dialog should be executed.
owner
OwnerWindowAny object that implements IWin32Window that represents the top-level window that will own the modal dialog box.
Returns
- bool
DialogResult.OK if the user clicks OK in the dialog box; otherwise, DialogResult.Cancel.