Skip to content

Commit 24c70af

Browse files
authored
Update FindOnPage.md
start find async
1 parent 6dd9024 commit 24c70af

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

FindOnPage.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,13 +563,17 @@ namespace Microsoft.Web.WebView2.Core
563563
interface ICoreWebView2Find
564564
{
565565
[completed_handler("")]
566-
/// Initiates a find using the specified configuration.
566+
/// Initiates a find using the specified configuration asynchronously.
567567
/// Displays the Find bar and starts the find operation. If a find session was already ongoing, it will be stopped and replaced with this new instance.
568568
/// If called with an empty string, the Find bar is displayed but no finding occurs. Changing the configuration object after initiation won't affect the ongoing find session.
569-
/// To change the ongoing find session, StartFind must be called again with a new or modified configuration object.
569+
/// To change the ongoing find session, StartFindAsync must be called again with a new or modified configuration object.
570570
/// This method is primarily designed for HTML document queries.
571+
/// Note: The asynchronous action completes when the UI has been displayed with the find term in the UI bar, and the matches have populated on the counter on the find bar.
572+
/// There may be a slight latency between the UI display and the matches populating in the counter.
573+
/// The MatchCountChanged and ActiveMatchIndexChanged events are only raised after StartFindAsync has completed, otherwise they will have their default values (-1 for both).
571574
Windows.Foundation.IAsyncAction StartFindAsync(CoreWebView2FindConfiguration configuration);
572575

576+
573577
/// Navigates to the next match in the document.
574578
/// Note: If called when there is no find operation in progress, FindNext will start a new find session.
575579
/// If there are no matches to find, FindNext will wrap around to the first match if the search direction is forward,

0 commit comments

Comments
 (0)