Click or drag to resize

IDocument ReplaceInLine Method (String, TextSelection, Boolean, Boolean)

Replaces the matchString text with matchSelection in single-line mode.

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

Parameters

given
Type: System String
replacement
Type: Spire.Doc.Documents TextSelection
caseSensitive
Type: System Boolean
if it specifies case sensitive newValue, set to true .
wholeWord
Type: System Boolean
if it specifies whole word to be newValue, set to true .

Return Value

Type: Int32
The number of performed replaces.
See Also