Skip to content

Commit 42b3cdd

Browse files
authored
Update FindOnPage.md
1 parent e6c8905 commit 42b3cdd

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

FindOnPage.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ To retrieve the total number of matches found during a find operation within a W
154154
}
155155
//! [GetMatchCount]
156156
```
157-
#### Handle Match Count Changes
158-
157+
#### WIN32 C++
159158
```cpp
160159
// Register MatchCountChanged event handler
161160
m_webView->add_MatchCountChanged(
@@ -168,7 +167,7 @@ To retrieve the total number of matches found during a find operation within a W
168167
}).Get(),
169168
&m_matchCountChangedToken);
170169
```
171-
170+
#### .NET C#
172171
```csharp
173172
void MatchCountChangedSample()
174173
{
@@ -179,6 +178,7 @@ void MatchCountChangedSample()
179178
}
180179
```
181180
#### Handle Match Index Changes
181+
#### WIN32 C++
182182

183183
```cpp
184184
// Register ActiveMatchIndexChanged event handler
@@ -192,7 +192,7 @@ m_webView->add_ActiveMatchIndexChanged(
192192
}).Get(),
193193
&m_activeMatchIndexChangedToken);
194194
```
195-
195+
#### .NET C#
196196
```csharp
197197
void ActiveMatchIndexChangedSample()
198198
{
@@ -229,7 +229,7 @@ Developers can retrieve the index of the currently active match within a WebView
229229
}
230230
//! [GetActiveMatchIndex]
231231
```
232-
232+
#### .NET C#
233233
```csharp
234234
//! [GetActiveMatchIndex]
235235
public async Task<int> GetActiveMatchIndexAsync()
@@ -460,7 +460,8 @@ namespace Microsoft.Web.WebView2.Core
460460
}
461461
```
462462

463-
These examples demonstrate how you might conceptualize and implement a Find API within the Microsoft WebView2 environment, focusing on async patterns for responsive UI interactions and event handling for dynamic UI updates based on the results of find operations. This design emphasizes asynchronous task-based APIs, event handling for UI updates, and modular API design for clear separation of concerns.
463+
These examples demonstrate how you would conceptualize and implement the Find API within the Microsoft WebView2 environment, focusing on async patterns for responsive UI interactions and event handling for dynamic UI updates based on the results of find operations.
464+
This design emphasizes asynchronous task-based APIs, event handling for UI updates, and modular API design for clear separation of concerns.
464465

465466
# Appendix
466467

0 commit comments

Comments
 (0)