Find text
Namespace: Spire.PdfAssembly: Spire.Pdf (in Spire.Pdf.dll) Version: 7.9.2.0 (7.9.2.1020)
Syntax
| C# | Visual Basic | Visual C++ | F# |
[ObsoleteAttribute("This method may be removed in the future, please use FindText(string searchPatternText, TextFindParameter parameter) instead.")] public PdfTextFindCollection FindText( string searchPatternText, bool isSearchWholeWord )
<ObsoleteAttribute("This method may be removed in the future, please use FindText(string searchPatternText, TextFindParameter parameter) instead.")> Public Function FindText ( searchPatternText As String, isSearchWholeWord As Boolean ) As PdfTextFindCollection
public: [ObsoleteAttribute(L"This method may be removed in the future, please use FindText(string searchPatternText, TextFindParameter parameter) instead.")] PdfTextFindCollection^ FindText( String^ searchPatternText, bool isSearchWholeWord )
[<ObsoleteAttribute("This method may be removed in the future, please use FindText(string searchPatternText, TextFindParameter parameter) instead.")>] member FindText : searchPatternText : string * isSearchWholeWord : bool -> PdfTextFindCollection
Parameters
- searchPatternText
- String
The text intends to search.
- isSearchWholeWord
- Boolean
Indicate the expected result is the whole word or not, which means, if it is true, only the word is exactly the same with the searching word will be found;if it is false, any word including the searching word will be found. For instance,the text is "is this a pen?" and the target is "is", if true, one result will be returned; if false, two results will be returned.