Skip to content

Commit e0a860c

Browse files
authored
Update FindOnPage.md
1 parent eeceaf0 commit e0a860c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

FindOnPage.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ within a WebView2 control, developers can utilize the `GetmatchCount ` method.
238238
wil::com_ptr<ICoreWebView2Find> webView2find;
239239
CHECK_FAILURE(webView2_17->get_Find(&webView2find));
240240
LONG matchCount ;
241-
CHECK_FAILURE(webView2find->get_MatchesCount(&matchCount ));
241+
CHECK_FAILURE(webView2find->get_MatchCount(&matchCount ));
242242

243243
// Update UI or handle matchCount as you wish
244244
// For example, you could show a message box
@@ -267,7 +267,7 @@ within a WebView2 control, developers can utilize the `GetmatchCount ` method.
267267
{
268268
// Assuming webView is your WebView2 control
269269
var webViewFind = webView.CoreWebView2.FindController;
270-
var matchCount = await webViewFind.GetMatchesCountAsync();
270+
var matchCount = await webViewFind.GetMatchCountAsync();
271271
MessageBox.Show($"Match Count: {matchCount }", "Find Operation", MessageBoxButton.OK);
272272
return matchCount ;
273273
}
@@ -397,7 +397,7 @@ interface ICoreWebView2FindConfiguration : IUnknown {
397397

398398
// Gets the total count of matches found in the current document based on the last find criteria.
399399
// Returns the total count of matches.
400-
[propget] HRESULT MatchesCount([out, retval] LONG* value);
400+
[propget] HRESULT MatchCount([out, retval] LONG* value);
401401

402402
}
403403

@@ -517,8 +517,8 @@ runtime CoreWebView2Find
517517
bool ShouldHighlightAllMatches { get; set; }
518518
bool ShouldHighlightActiveMatch { get; set; }
519519
bool UseCustomUI { get; set; }
520-
int ActiveMatchIndex { get; }; // Synchronously gets the active match index.
521-
int MatchesCount { get; }; // Synchronously gets the matches count.
520+
int ActiveMatchIndex { get; };
521+
int MatchCount { get; };
522522
}
523523
}
524524

0 commit comments

Comments
 (0)