Skip to content

Commit 18ea6f5

Browse files
authored
Update FindOnPage.md
1 parent c062611 commit 18ea6f5

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

FindOnPage.md

+2-11
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ wil::com_ptr<ICoreWebView2FindConfiguration> AppWindow::InitializeFindConfigurat
4545
wil::com_ptr<ICoreWebView2FindConfiguration> findConfiguration;
4646
CHECK_FAILURE(webView2Environment5->CreateFindConfiguration(&findConfiguration));
4747
CHECK_FAILURE(findConfiguration->put_FindTerm(findTerm.c_str()));
48-
CHECK_FAILURE(findConfiguration->put_IsCaseSensitive(false));
49-
CHECK_FAILURE(findConfiguration->put_ShouldMatchWord(false));
50-
CHECK_FAILURE(findConfiguration->put_FindDirection(COREWEBVIEW2_FIND_DIRECTION_FORWARD));
5148

5249
// Query for the ICoreWebView2_17 interface to access the Find feature.
5350
auto webView2_17 = m_webView.try_query<ICoreWebView2_17>();
@@ -164,10 +161,7 @@ async Task ConfigureAndExecuteFindWithDefaultUIAsync(string findTerm)
164161
// Initialize the find configuration with specified settings.
165162
var findConfiguration = new CoreWebView2FindConfiguration
166163
{
167-
FindTerm = findTerm,
168-
IsCaseSensitive = false,
169-
ShouldMatchWord = false,
170-
FindDirection = CoreWebView2FindDirection.Forward
164+
FindTerm = findTerm
171165
};
172166
173167
// 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)
202196
// Initialize the find configuration with specified settings.
203197
var findConfiguration = new CoreWebView2FindConfiguration
204198
{
205-
FindTerm = findTerm,
206-
IsCaseSensitive = false,
207-
ShouldMatchWord = false,
208-
FindDirection = CoreWebView2FindDirection.Forward
199+
FindTerm = findTerm
209200
};
210201

211202
// Specify that a custom UI will be used for the find operation.

0 commit comments

Comments
 (0)