IDocument
ReplaceInLine Method (Regex, TextSelection)
|
Replaces the matchString pattern 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(
Regex pattern,
TextSelection replacement
)
Function ReplaceInLine (
pattern As Regex,
replacement As TextSelection
) As Integer
int ReplaceInLine(
Regex^ pattern,
TextSelection^ replacement
)
abstract ReplaceInLine :
pattern : Regex *
replacement : TextSelection -> int
Parameters
-
pattern
-
Type:
System.Text.RegularExpressions
Regex
The pattern.
-
replacement
-
Type:
Spire.Doc.Documents
TextSelection
Return Value
Type:
Int32
The number of performed replaces.
See Also