Click or drag to resize

StructureDocumentTag Replace Method (Regex, TextSelection, Boolean)

Replaces all entries of matchString regular expression with TextRangesHolder.

Namespace: Spire.Doc.Documents
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public override int Replace(
	Regex pattern,
	TextSelection textSelection,
	bool saveFormatting
)

Parameters

pattern
Type: System.Text.RegularExpressions Regex
The pattern.
textSelection
Type: Spire.Doc.Documents TextSelection
The text selection.
saveFormatting
Type: System Boolean
if it specifies save source formatting, set to true .

Return Value

Type: Int32
See Also