Replaces all entries of matchString string with newValue string, taking into consideration caseSensitive and wholeWord options.

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 Replace(
	string matchString,
	string newValue,
	bool caseSensitive,
	bool wholeWord
)
Public Function Replace ( 
	matchString As String,
	newValue As String,
	caseSensitive As Boolean,
	wholeWord As Boolean
) As Integer
public:
virtual int Replace(
	String^ matchString, 
	String^ newValue, 
	bool caseSensitive, 
	bool wholeWord
) sealed
abstract Replace : 
        matchString : string * 
        newValue : string * 
        caseSensitive : bool * 
        wholeWord : bool -> int 
override Replace : 
        matchString : string * 
        newValue : string * 
        caseSensitive : bool * 
        wholeWord : bool -> int 

Parameters

matchString
String
newValue
String
caseSensitive
Boolean
wholeWord
Boolean

Return Value

Int32

Implements

IDocument..::..Replace(String, String, Boolean, Boolean)

See Also