@@ -238,7 +238,7 @@ within a WebView2 control, developers can utilize the `GetmatchCount ` method.
238
238
wil::com_ptr<ICoreWebView2Find > webView2find;
239
239
CHECK_FAILURE(webView2_17->get_Find(&webView2find));
240
240
LONG matchCount ;
241
- CHECK_FAILURE(webView2find->get_MatchesCount (&matchCount ));
241
+ CHECK_FAILURE(webView2find->get_MatchCount (&matchCount ));
242
242
243
243
// Update UI or handle matchCount as you wish
244
244
// For example, you could show a message box
@@ -267,7 +267,7 @@ within a WebView2 control, developers can utilize the `GetmatchCount ` method.
267
267
{
268
268
// Assuming webView is your WebView2 control
269
269
var webViewFind = webView.CoreWebView2.FindController;
270
- var matchCount = await webViewFind.GetMatchesCountAsync ();
270
+ var matchCount = await webViewFind.GetMatchCountAsync ();
271
271
MessageBox.Show($"Match Count: {matchCount }", "Find Operation", MessageBoxButton.OK);
272
272
return matchCount ;
273
273
}
@@ -397,7 +397,7 @@ interface ICoreWebView2FindConfiguration : IUnknown {
397
397
398
398
// Gets the total count of matches found in the current document based on the last find criteria.
399
399
// Returns the total count of matches.
400
- [propget ] HRESULT MatchesCount ([out , retval ] LONG* value);
400
+ [propget ] HRESULT MatchCount ([out , retval ] LONG* value);
401
401
402
402
}
403
403
@@ -517,8 +517,8 @@ runtime CoreWebView2Find
517
517
bool ShouldHighlightAllMatches { get; set; }
518
518
bool ShouldHighlightActiveMatch { get ; set ; }
519
519
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 ; };
522
522
}
523
523
}
524
524
0 commit comments