Replaces the matchString pattern with matchSelection in single-line mode.

Namespace: Spire.Doc
Assembly: 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 

Parameters

pattern
Regex
The pattern.
matchSelection
TextSelection
The matchSelection.

Return Value

Int32
The number of performed replaces.

Implements

IDocument..::..ReplaceInLine(Regex, TextSelection)

See Also