Version Changes: 19 to 20
Leadtools.Document.Viewer namespace in v20 replaces Leadtools.Documents.UI in v19.
The DocumentViewerFindText class (as of version 19.0.0.49
) no longer holds internal state for previous searches, and some properties have been added/removed. Refer to DocumentViewerText.Find for more information.
Changed Property | Summary of Change |
---|---|
AutoEnsureVisible | Removed - Replaced by SelectFirstResult |
AutoSelect | Removed - Replaced by SelectFirstResult |
GoToNextPage | Removed - Replaced by BeginPosition and EndPosition |
PageNumber | Removed - Replaced by BeginPosition and EndPosition |
Recursive | Removed - Replaced by Loop |
BeginPosition |
Added |
EndPosition |
Added |
FindAll |
Added |
Loop |
Added |
RenderResults |
Added |
SelectFirstResult |
Added |
Start |
Added |
ManualStartPosition |
Added |
19.0.0.49
introduced major changes to the behavior of the DocumentViewerText.Find method.
Prior to version 19.0.0.49
, The function signature of the [Find] method was:
DocumentViewerText.Find was a synchronous method that took three parameters and returned an array of DocumentViewerTextItem that would indicate the next match. Only one match was returned.
DocumentViewerFindText held internal state about the results of the last time it was passed to [Find], so passing the same instance to [Find] could yield different results.
The isFirst parameter indicated whether or not this find text operation should be treated as the first one. If true, searching would start from the beginning of the document.
The findNext parameter was a boolean switch that was true to indicate searching in the forward direction and false to indicate searching in the backward direction.
When a [Find] was successful and results were returned, the LastFindText property would be set to the findText parameter that was passed. This would allow for simpler additional searches: because the DocumentViewerFindText object held internal state about the result, subsequent searches with that same instance would search from the last match. "Find Previous" or "Find Next" operations were possible in this manner.
This version of [Find] did not support "hidden space"/multi-line searches, multipage searches, multiple results with one search, sub-page begin and end character positions, or rendering the results with FoundTextBrush.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document