diff --git a/CefSharp.WinForms/WebView.cs b/CefSharp.WinForms/WebView.cs index b6bc6a2af..acd35dea2 100644 --- a/CefSharp.WinForms/WebView.cs +++ b/CefSharp.WinForms/WebView.cs @@ -175,7 +175,15 @@ namespace CefSharp.WinForms } } - + public void Find(int identifier, string searchText, bool forward, bool matchCase, bool findNext) + { + managedCefBrowserAdapter.Find(identifier, searchText, forward, matchCase, findNext); + } + + public void StopFinding(bool clearSelection) + { + managedCefBrowserAdapter.StopFinding(clearSelection); + } public void ShowDevTools() { diff --git a/CefSharp.Wpf/IWpfWebBrowser.cs b/CefSharp.Wpf/IWpfWebBrowser.cs index 40d45aaa1..b2be13125 100644 --- a/CefSharp.Wpf/IWpfWebBrowser.cs +++ b/CefSharp.Wpf/IWpfWebBrowser.cs @@ -98,23 +98,6 @@ namespace CefSharp.Wpf /// performed using browser cache void Reload(bool ignoreCache); - /// - /// Search for text within the current page - /// - /// Can be used in can conjunction with searchText to have multiple - /// searches running simultaniously. - /// search text - /// indicates whether to search forward or backward within the page. - /// indicates whether the search should be case-sensitive. - /// indicates whether this is the first request or a follow-up. - void Find(int identifier, string searchText, bool forward, bool matchCase, bool findNext); - - /// - /// Cancel all searches that are currently going on. - /// - /// clear the current search selection - void StopFinding(bool clearSelection); - /// /// The zoom level at which the browser control is currently displaying. Can be set to 0 to clear the zoom level (resets to /// default zoom level) diff --git a/CefSharp/IWebBrowser.cs b/CefSharp/IWebBrowser.cs index 2f86844ad..bb716aaed 100644 --- a/CefSharp/IWebBrowser.cs +++ b/CefSharp/IWebBrowser.cs @@ -66,5 +66,22 @@ namespace CefSharp string Address { get; set; } string Title { get; set; } string TooltipText { get; set; } + + /// + /// Search for text within the current page + /// + /// Can be used in can conjunction with searchText to have multiple + /// searches running simultaniously. + /// search text + /// indicates whether to search forward or backward within the page. + /// indicates whether the search should be case-sensitive. + /// indicates whether this is the first request or a follow-up. + void Find(int identifier, string searchText, bool forward, bool matchCase, bool findNext); + + /// + /// Cancel all searches that are currently going on. + /// + /// clear the current search selection + void StopFinding(bool clearSelection); } }