Skip to content

Commit c4988da

Browse files
authored
Update FindOnPage.md
1 parent 18ea6f5 commit c4988da

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

FindOnPage.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ the active match index based on the selected Find Direction.
3434

3535
```cpp
3636

37-
//! [InitializeFindConfiguration]
3837
wil::com_ptr<ICoreWebView2FindConfiguration> AppWindow::InitializeFindConfiguration(const std::wstring& findTerm)
3938
{
4039
// Query for the ICoreWebView2Environment5 interface.
@@ -52,11 +51,9 @@ wil::com_ptr<ICoreWebView2FindConfiguration> AppWindow::InitializeFindConfigurat
5251

5352
return findConfiguration;
5453
}
55-
//! [InitializeFindConfiguration]
5654
```
5755
5856
```cpp
59-
//! [ExecuteFindWithDefaultUI]
6057
bool AppWindow::ConfigureAndExecuteFind(const std::wstring& findTerm)
6158
{
6259
auto findConfiguration = InitializeFindConfiguration(findTerm);
@@ -95,11 +92,9 @@ bool AppWindow::ConfigureAndExecuteFind(const std::wstring& findTerm)
9592
// End user interaction is handled via UI.
9693
return true;
9794
}
98-
//! [ExecuteFindWithDefaultUI]
9995
```
10096

10197
```cpp
102-
//! [ExecuteFindWithCustomUI]
10398
bool AppWindow::ExecuteFindWithCustomUI(const std::wstring& findTerm)
10499
{
105100
auto findConfiguration = InitializeFindConfiguration(findTerm);
@@ -143,11 +138,9 @@ bool AppWindow::ExecuteFindWithCustomUI(const std::wstring& findTerm)
143138

144139
return true;
145140
}
146-
//! [ExecuteFindWithCustomUI]
147141
```
148142
#### .NET C#
149143
```csharp
150-
//! [ConfigureAndExecuteFindWithDefaultUI]
151144
async Task ConfigureAndExecuteFindWithDefaultUIAsync(string findTerm)
152145
{
153146
try
@@ -178,11 +171,9 @@ async Task ConfigureAndExecuteFindWithDefaultUIAsync(string findTerm)
178171
Console.WriteLine($"An error occurred: {ex.Message}");
179172
}
180173
}
181-
//! [ConfigureAndExecuteFindWithDefaultUI]
182174
```
183175

184176
```csharp
185-
//! [ConfigureAndExecuteFindWithCustomUI]
186177
async Task ConfigureAndExecuteFindWithCustomUIAsync(string findTerm)
187178
{
188179
try
@@ -214,7 +205,6 @@ async Task ConfigureAndExecuteFindWithCustomUIAsync(string findTerm)
214205
Console.WriteLine($"An error occurred: {ex.Message}");
215206
}
216207
}
217-
//! [ConfigureAndExecuteFindWithCustomUI]
218208
```
219209

220210
### Retrieve the Index of the Active Match
@@ -225,7 +215,6 @@ within a WebView2 control using the `GetActiveMatchIndex` method.
225215

226216

227217
```cpp
228-
//! [GetActiveMatchIndex]
229218
bool AppWindow::GetActiveMatchIndex()
230219
{
231220
auto webView2_17 = m_webView.try_query<ICoreWebView2_17>();
@@ -243,7 +232,6 @@ within a WebView2 control using the `GetActiveMatchIndex` method.
243232

244233
return true;
245234
}
246-
//! [GetActiveMatchIndex]
247235

248236
// Register ActiveMatchIndexChanged event handler
249237
m_webView->add_ActiveMatchIndexChanged(
@@ -258,7 +246,6 @@ within a WebView2 control using the `GetActiveMatchIndex` method.
258246
```
259247
#### .NET C#
260248
```csharp
261-
//! [GetActiveMatchIndex]
262249
public async Task<int> GetActiveMatchIndexAsync()
263250
{
264251
var webViewFind = webView.CoreWebView2.Find; // Assuming webView is your WebView2 control
@@ -275,7 +262,6 @@ void ActiveMatchIndexChangedSample()
275262
// Update Custom UI based on the new active match index.
276263
};
277264
}
278-
//! [GetActiveMatchIndex]
279265
```
280266

281267
## API Details

0 commit comments

Comments
 (0)