VegaRise.NET
Back to BaseTextElement`1

FindMethod

Definition

Namespace
DOM.Elements.TextElements
Assembly
DOM.dll

Finds occurrences of within this element's text content. searchText

Find(string searchText, RegexOptions? regexOption, bool wholeWordOnly, bool caseSensitive)

Parameters

searchText
The text or pattern to search for. If or empty, implementations should return an empty list.
regexOption
Optional to apply when performing the search. When, implementations should use a sensible default (for example ). If the is not a regular expression, may be ignored depending on the implementation. RegexOptions, None searchText regexOption
wholeWordOnly
When, match only whole-word occurrences. Implementations should apply word-boundary semantics to avoid partial matches (for example "art" not matching "partial").
caseSensitive
When, perform a case-sensitive search; otherwise perform a case-insensitive search. This flag may be implemented by adjusting or by normalizing text, depending on the concrete implementation. regexOption

Returns

A list of integer positions (for example character offsets or run indexes) representing the start locations of each match. The exact meaning of the returned integers is implementation-specific but should be documented by concrete implementers.

VegaRiseVDocs.NET

Create Account

Create your VDocs account.

or

Already have an account? Sign in