Pageflex Document Action API
FindText Method (text, matchCase, matchWholeWord)
Namespaces > Pageflex.Scripting > Document > FindText(String, Boolean, Boolean)
Finds all instances of the specified text in the document.

C# | Visual Basic | Managed C++ |


Returns an array of Range objects representing all instances of text in the document.

If modifying the returned Range objects, iterate in reverse order.

Exception | Condition |
---|---|
ArgumentNullException | The value supplied for text was nullNothingnullptr. |
StaleScriptingObjectException | This object's associated internal object no longer exists. |
Assembly: PFScript Version: 8.0.7.1407 (Module: PFScript)