Replaces by specified pattern.

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 override int Replace(
	Regex pattern,
	TextSelection textSelection,
	bool saveFormatting
)
Public Overrides Function Replace ( 
	pattern As Regex,
	textSelection As TextSelection,
	saveFormatting As Boolean
) As Integer
public:
virtual int Replace(
	Regex^ pattern, 
	TextSelection^ textSelection, 
	bool saveFormatting
) override
abstract Replace : 
        pattern : Regex * 
        textSelection : TextSelection * 
        saveFormatting : bool -> int 
override Replace : 
        pattern : Regex * 
        textSelection : TextSelection * 
        saveFormatting : bool -> int 

Parameters

pattern
Regex
The pattern.
textSelection
TextSelection
The text selection.
saveFormatting
Boolean
if it specifies save source formatting, set to true.

Return Value

Int32

See Also