Skip to content

Commit b9a14b6

Browse files
authored
changed shouldhighlight and supress dialiog
1 parent 57389cf commit b9a14b6

File tree

1 file changed

+26
-21
lines changed

1 file changed

+26
-21
lines changed

FindOnPage.md

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ namespace Microsoft.Web.WebView2.Core
534534
Backward,
535535
};
536536

537-
runtimeclass CoreWebView2FindConfiguration : [default]ICoreWebView2FindConfiguration {}
537+
runtimeclass CoreWebView2FindConfiguration : [default]ICoreWebView2FindConfiguration {}
538538

539539
/// Interface defining the find configuration.
540540
/// This interface provides the necessary methods and properties to configure a find operation.
@@ -545,18 +545,39 @@ namespace Microsoft.Web.WebView2.Core
545545
{
546546
/// Gets or sets the find term used for the find operation. Returns the find term.
547547
String FindTerm { get; set; };
548+
548549
/// Gets or sets the direction of the find operation (forward or backward). Returns the find direction.
549550
CoreWebView2FindDirection FindDirection { get; set; };
551+
550552
/// Determines if the find operation is case sensitive. Returns TRUE if the find is case sensitive, FALSE otherwise.
551-
/// In text operations such as case sensitivity and word breaking, the behavior can vary by locale, which may be influenced by both the browser's UI locale and the document's language settings. The browser's UI locale
553+
/// When toggling case sensitivity, the behavior can vary by locale, which may be influenced by both the browser's UI locale and the document's language settings. The browser's UI locale
552554
/// typically provides a default handling approach, while the document's language settings (e.g., specified using the HTML lang attribute) can override these defaults to apply locale-specific rules. This dual consideration
553-
/// ensures that text is processed in a manner consistent with user expectations and the linguistic context of the content
555+
/// ensures that text is processed in a manner consistent with user expectations and the linguistic context of the content.
554556
Boolean IsCaseSensitive { get; set; };
555-
// Determines if only whole words should be matched during the find operation. Returns TRUE if only whole words should be matched, FALSE otherwise.
557+
558+
/// Similar to case sensitivity, word matching also can vary by locale, which may be influenced by both the browser's UI locale and the document's language settings. The browser's UI locale
559+
/// typically provides a default handling approach, while the document's language settings (e.g., specified using the HTML lang attribute) can override these defaults to apply locale-specific rules. This dual consideration
560+
/// ensures that text is processed in a manner consistent with user expectations and the linguistic context of the content.
561+
/// ShouldMatchWord determines if only whole words should be matched during the find operation. Returns TRUE if only whole words should be matched, FALSE otherwise.
556562
Boolean ShouldMatchWord { get; set; };
563+
564+
/// Gets or sets the state of whether all matches are highlighted.
565+
/// Returns TRUE if all matches are highlighted, FALSE otherwise.
566+
/// Note: Changes to this property take effect only when StartFind, FindNext, or FindPrevious is called.
567+
/// Preferences for the session cannot be updated unless another call to the StartFind function on the server-side is made.
568+
/// Therefore, changes will not take effect until one of these functions is called.
569+
Boolean ShouldHighlightAllMatches { get; set; };
570+
571+
/// Sets this property to hide the default Find UI.
572+
/// You can use this to hide the default UI so that you can show your own custom UI or programmatically interact with the Find API while showing no Find UI.
573+
/// Returns TRUE if hiding the default Find UI and FALSE if using showing the default Find UI.
574+
/// Note: Changes to this property take effect only when StartFind, FindNext, or FindPrevious is called.
575+
/// Preferences for the session cannot be updated unless another call to the StartFind function on the server-side is made.
576+
/// Therefore, changes will not take effect until one of these functions is called.
577+
Boolean SuppressDefaultFindDialog { get; set; };
557578
};
558579

559-
runtimeclass CoreWebView2Find : [default]ICoreWebView2Find {}
580+
runtimeclass CoreWebView2Find : [default]ICoreWebView2Find {}
560581

561582
/// Interface providing methods and properties for finding and navigating through text in the web view.
562583
/// This interface allows for finding text, navigation between matches, and customization of the find UI.
@@ -603,22 +624,6 @@ namespace Microsoft.Web.WebView2.Core
603624
/// If called with no Find session active, it will silently do nothing.
604625
void StopFind();
605626

606-
/// Gets or sets the state of whether all matches are highlighted.
607-
/// Returns TRUE if all matches are highlighted, FALSE otherwise.
608-
/// Note: Changes to this property take effect only when StartFind, FindNext, or FindPrevious is called.
609-
/// Preferences for the session cannot be updated unless another call to the StartFind function on the server-side is made.
610-
/// Therefore, changes will not take effect until one of these functions is called.
611-
Boolean ShouldHighlightAllMatches { get; set; };
612-
613-
/// Sets this property to hide the default Find UI.
614-
/// You can use this to hide the default UI so that you can show your own custom UI or programmatically interact with the Find API while showing no Find UI.
615-
/// Returns TRUE if hiding the default Find UI and FALSE if using showing the default Find UI.
616-
/// Note: Changes to this property take effect only when StartFind, FindNext, or FindPrevious is called.
617-
/// Preferences for the session cannot be updated unless another call to the StartFind function on the server-side is made.
618-
/// Therefore, changes will not take effect until one of these functions is called.
619-
Boolean SuppressDefaultFindDialog { get; set; };
620-
621-
622627
/// Retrieves the index of the currently active match in the find session. Returns the index of the currently active match, or -1 if there is no active match.
623628
Int32 ActiveMatchIndex { get; };
624629

0 commit comments

Comments
 (0)