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.