Method Execute
Execute(ISearch, bool, bool)
Initializes and runs a search dialog box.
public virtual DialogResult 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
- DialogResult
DialogResult.OK if the user clicks OK in the dialog box; otherwise, DialogResult.Cancel.
Execute(ISearch, bool, bool, IWin32Window)
Initializes and runs a search dialog box.
public virtual DialogResult Execute(ISearch search, bool isModal, bool isReplace, IWin32Window 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
IWin32WindowAny object that implements IWin32Window that represents the top-level window that will own the modal dialog box.
Returns
- DialogResult
DialogResult.OK if the user clicks OK in the dialog box; otherwise, DialogResult.Cancel.