You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Viewer/blazor/text-search.md
+88Lines changed: 88 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,94 @@ Use the [PdfViewerTextSearchColorSettings](https://help.syncfusion.com/cr/blazor
101
101
102
102

103
103
104
+
## Text Search Events
105
+
106
+
The following events are available for text search in the SfPdfViewer component.
107
+
108
+
|Name|Description|
109
+
|---|---|
110
+
|OnTextSearchStart|Triggers when a text search starts.|
111
+
|OnTextSearchComplete|Triggers when a text search is completed.|
112
+
|OnTextSearchHighlight|Triggers when searched text is highlighted.|
113
+
114
+
### OnTextSearchStart Event
115
+
116
+
The [OnTextSearchStart](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_OnTextSearchStart) event triggers when the text search is started.
117
+
118
+
#### Event Arguments
119
+
120
+
See [TextSearchStartEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.TextSearchStartEventArgs.html) for details such as matchcase, search text.
121
+
122
+
The following example illustrates how to handle the TextSearchStart event.
The [OnTextSearchComplete](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_OnTextSearchComplete) event triggers when the text search is completed.
143
+
144
+
#### Event Arguments
145
+
146
+
[TextSearchCompleteEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.TextSearchCompleteEventArgs.html) triggers when the text search is completed.
147
+
148
+
The following example illustrates how to handle the TextSearchComplete event.
public async Task TextSearchComplete(TextSearchCompleteEventArgs args)
159
+
{
160
+
Console.WriteLine("Text search completed");
161
+
}
162
+
}
163
+
164
+
```
165
+
166
+
### OnTextSearchHighlight Event
167
+
168
+
The [OnTextSearchHighlight](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerEvents.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerEvents_OnTextSearchHighlight) event triggers when the text search text is highlighted.
169
+
170
+
#### Event Arguments
171
+
172
+
[TextSearchHighlightEventArgs](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.TextSearchHighlightEventArgs.html) for details such as bounds, pagenumber of the highlighted text.
173
+
174
+
The following example illustrates how to handle the TextSearchHighlight event.
0 commit comments