Click or drag to resize

IDocument Replace Method (Regex, TextSelection)

Replaces all entries of matchString regular expression with TextRangesHolder.

Namespace: Spire.Doc.Interface
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
int Replace(
	Regex pattern,
	TextSelection textSelection
)

Parameters

pattern
Type: System.Text.RegularExpressions Regex
The pattern.
textSelection
Type: Spire.Doc.Documents TextSelection
The text selection.

Return Value

Type: Int32
See Also