VegaRise.NET
Back to TextContainer

ReplaceMethod

Definition

Namespace
DOM.Elements.TextElements
Assembly
DOM.dll

Replaces occurrences of the specified text across all contained elements. Applies optional regular expression behavior, whole-word matching, and case-sensitivity. IText

TextContainer Replace(string searchText, string replaceText, RegexOptions? regexOption, bool wholeWordOnly, bool caseSensitive)

Parameters

searchText
The text to search for.
replaceText
The replacement text.
regexOption
Optional to apply. RegexOptions
wholeWordOnly
Whether to restrict matches to whole words.
caseSensitive
Whether the operation should be case-sensitive.

Returns

TextContainer

The current instance, enabling fluent chaining. TextContainer

VegaRise.NET

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or

Don't have an account? Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.