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
)
Function ReplaceInLine (
given As String,
replacement As TextSelection,
caseSensitive As Boolean,
wholeWord As Boolean
) As Integer
int ReplaceInLine(
String^ given,
TextSelection^ replacement,
bool caseSensitive,
bool wholeWord
)
abstract ReplaceInLine :
given : string *
replacement : TextSelection *
caseSensitive : bool *
wholeWord : bool -> int
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