IBodyRegion
Replace Method (Regex, TextSelection)
|
Replaces by specified pattern.
Namespace:
Spire.Doc.Documents
Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
int Replace(
Regex pattern,
TextSelection textSelection
)
Function Replace (
pattern As Regex,
textSelection As TextSelection
) As Integer
int Replace(
Regex^ pattern,
TextSelection^ textSelection
)
abstract Replace :
pattern : Regex *
textSelection : TextSelection -> int
Parameters
-
pattern
-
Type:
System.Text.RegularExpressions
Regex
The pattern.
-
textSelection
-
Type:
Spire.Doc.Documents
TextSelection
The text selection.
Return Value
Type:
Int32
See Also