| 
Document
ReplaceInLine Method (Regex, TextSelection)
  | 
 Replaces the matchString pattern with matchSelection in single-line mode.
 Namespace:
 Spire.Doc
 Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
 Syntax
Syntax
 
 
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 
 
 
 
Parameters
 
- 
pattern
 
- 
 Type:
 
System.Text.RegularExpressions
Regex
 
 The pattern.
- 
matchSelection
 
- 
 Type:
 
Spire.Doc.Documents
TextSelection
 
 The matchSelection.
Return Value
 
 Type:
 
Int32
 
 The number of performed replaces.
 
Implements
 
IDocument
ReplaceInLine(Regex, TextSelection)
 
 
 See Also
See Also