Replaces the matchString pattern with matchSelection in single-line mode.
Namespace: Spire.DocAssembly: Spire.Doc (in Spire.Doc.dll) Version: 9.6.1.0 (9.6.1.3020)
Syntax
| C# | Visual Basic | Visual C++ | F# |
public int ReplaceInLine( Regex pattern, TextSelection matchSelection )
Public Function ReplaceInLine ( pattern As Regex, matchSelection As TextSelection ) As Integer
public: virtual int ReplaceInLine( Regex^ pattern, TextSelection^ matchSelection ) sealed
abstract ReplaceInLine : pattern : Regex * matchSelection : TextSelection -> int override ReplaceInLine : pattern : Regex * matchSelection : TextSelection -> int
Return Value
Int32The number of performed replaces.