Click or drag to resize

IParagraph Replace Method (String, TextSelection, Boolean, Boolean)

Replaces all entries of matchString string with TextRangesHolder, taking into consideration caseSensitive and wholeWord options.

Namespace: Spire.Doc.Interface
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
int Replace(
	string given,
	TextSelection textSelection,
	bool caseSensitive,
	bool wholeWord
)

Parameters

given
Type: System String
textSelection
Type: Spire.Doc.Documents TextSelection
The text selection.
caseSensitive
Type: System Boolean
if it specifies case sensitive search, set to true .
wholeWord
Type: System Boolean
if it specifies the whole word to be newValue, set to true .

Return Value

Type: Int32
See Also