VegaRise.NET
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.

Returns

IText

A list of indices corresponding to elements that contain a match. IText

Exceptions

  • System.ArgumentNullException: Thrown when is null. searchText
VegaRiseVDocs.NET

Create Account

Create your VDocs account.

or

Already have an account? Sign in