From 18ea6f55ded8c952ffd73d36481fab48f1ab0169 Mon Sep 17 00:00:00 2001 From: maxwellmyers <161385346+maxwellmyers@users.noreply.github.com> Date: Tue, 30 Jul 2024 13:31:37 -0700 Subject: [PATCH] Update FindOnPage.md --- FindOnPage.md | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/FindOnPage.md b/FindOnPage.md index 46343c8a..34539de6 100644 --- a/FindOnPage.md +++ b/FindOnPage.md @@ -45,9 +45,6 @@ wil::com_ptr AppWindow::InitializeFindConfigurat wil::com_ptr findConfiguration; CHECK_FAILURE(webView2Environment5->CreateFindConfiguration(&findConfiguration)); CHECK_FAILURE(findConfiguration->put_FindTerm(findTerm.c_str())); - CHECK_FAILURE(findConfiguration->put_IsCaseSensitive(false)); - CHECK_FAILURE(findConfiguration->put_ShouldMatchWord(false)); - CHECK_FAILURE(findConfiguration->put_FindDirection(COREWEBVIEW2_FIND_DIRECTION_FORWARD)); // Query for the ICoreWebView2_17 interface to access the Find feature. auto webView2_17 = m_webView.try_query(); @@ -164,10 +161,7 @@ async Task ConfigureAndExecuteFindWithDefaultUIAsync(string findTerm) // Initialize the find configuration with specified settings. var findConfiguration = new CoreWebView2FindConfiguration { - FindTerm = findTerm, - IsCaseSensitive = false, - ShouldMatchWord = false, - FindDirection = CoreWebView2FindDirection.Forward + FindTerm = findTerm }; // By default Find will use the default UI and highlight all matches. If you want different behavior @@ -202,10 +196,7 @@ async Task ConfigureAndExecuteFindWithCustomUIAsync(string findTerm) // Initialize the find configuration with specified settings. var findConfiguration = new CoreWebView2FindConfiguration { - FindTerm = findTerm, - IsCaseSensitive = false, - ShouldMatchWord = false, - FindDirection = CoreWebView2FindDirection.Forward + FindTerm = findTerm }; // Specify that a custom UI will be used for the find operation.