Document
Replace Method (String, TextSelection, Boolean, Boolean)
|
Replaces all entries of matchString string with TextSelection, taking into
consideration caseSensitive and wholeWord options.
Namespace:
Spire.Doc
Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
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
-
Type:
System
String
The matchString.
-
textSelection
-
Type:
Spire.Doc.Documents
TextSelection
The text selection.
-
caseSensitive
-
Type:
System
Boolean
if it is case sensitive, set to
true
.
-
wholeWord
-
Type:
System
Boolean
if it specifies whole word, set to
true
.
Return Value
Type:
Int32
Implements
IDocument
Replace(String, TextSelection, Boolean, Boolean)
See Also