Click or drag to resize

BodyRegion Replace Method (Regex, TextSelection, Boolean)

Replaces by specified pattern.

Namespace: Spire.Doc
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public abstract 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 save source formatting, set to true .

Return Value

Type: Int32
See Also