Replaces all entries of matchString string with TextSelection, taking into
consideration caseSensitive and wholeWord options.
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 Replace( string matchString, TextSelection textSelection, bool caseSensitive, bool wholeWord )
Public Function Replace ( matchString As String, textSelection As TextSelection, caseSensitive As Boolean, wholeWord As Boolean ) As Integer
public: virtual int Replace( String^ matchString, TextSelection^ textSelection, bool caseSensitive, bool wholeWord ) sealed
abstract Replace : matchString : string * textSelection : TextSelection * caseSensitive : bool * wholeWord : bool -> int override Replace : matchString : string * textSelection : TextSelection * caseSensitive : bool * wholeWord : bool -> int
Parameters
- matchString
- String
The matchString.
- textSelection
- TextSelection
The text selection.
- caseSensitive
- Boolean
if it is case sensitive, set to true.
- wholeWord
- Boolean
if it specifies whole word, set to true.