Back to TextContainer
FindMethod
Definition
- Namespace
- DOM.Elements.TextElements
- Assembly
- DOM.dll
Searches all contained elements for the specified text. Applies optional regular expression behavior, whole-word matching, and case-sensitivity. Returns the indices of the text elements that contain at least one match. IText
IText Find(string searchText, RegexOptions? regexOption, bool wholeWordOnly, bool caseSensitive)Parameters
- searchText
- The text to search for. Cannot be null.
- regexOption
- Optional to apply. RegexOptions
- wholeWordOnly
- Whether the match must correspond to a whole-word boundary.
- caseSensitive
- Whether the search is case-sensitive.
Exceptions
- System.ArgumentNullException: Thrown when is null. searchText