[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.RangeBaseFindReplaceExtensions

RangeBaseFindReplaceExtensions Class

Provides find/replace extension methods for the RangeBase class.

Inheritance
RangeBaseFindReplaceExtensions
Namespace: GrapeCity.Documents.Word
Assembly: DS.Documents.Word.dll
Syntax
public static class RangeBaseFindReplaceExtensions
Public Module RangeBaseFindReplaceExtensions

Methods

Name Description
Find(RangeBase, string, FindOptions)

In the current range, finds all occurrences of a specified findPattern, using specified options.

The findPattern can contain regular expressions (use RegularExpressions to control this).

The following special tokens can be used in the findPattern regardless of whether regex are on or off:

  • &pend of paragraph
  • &lmanual line break
  • &mpage break
  • &bsection break

To search for text with certain formatting, use options and set the FormattingOptions on it accordingly.

Replace(RangeBase, string, string, FindReplaceOptions)

In the current range, searches for a specified findPattern, and replaces it with a provided replaceText, using specified options.

The findPattern can contain regular expressions (use RegularExpressions to control this).

The following special tokens can be used in the findPattern and in the replaceText regardless of whether regex are on or off:

  • &pend of paragraph
  • &lmanual line break
  • &mpage break
  • &bsection break

To search for text with certain formatting, use options and set the FormattingOptions on it accordingly.