| 
StructureDocumentTag
Replace Method (String, TextSelection, Boolean, Boolean, Boolean)
  | 
 Replaces all entries of matchString string with TextRangesHolder, taking into
consideration caseSensitive and wholeWord options.
 Namespace:
 Spire.Doc.Documents
 Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
 Syntax
Syntax
 
 
public int Replace(
	string given,
	TextSelection textSelection,
	bool caseSensitive,
	bool wholeWord,
	bool saveFormatting
)
 
Public Function Replace ( 
	given As String,
	textSelection As TextSelection,
	caseSensitive As Boolean,
	wholeWord As Boolean,
	saveFormatting As Boolean
) As Integer
 
public:
int Replace(
	String^ given, 
	TextSelection^ textSelection, 
	bool caseSensitive, 
	bool wholeWord, 
	bool saveFormatting
)
 
member Replace : 
given : string * 
textSelection : TextSelection * 
caseSensitive : bool * 
wholeWord : bool * 
saveFormatting : bool -> int 
 
 
 
Parameters
 
- 
given
 
- 
 Type:
 
System
String
 
 
- 
textSelection
 
- 
 Type:
 
Spire.Doc.Documents
TextSelection
 
 The text selection.
- 
caseSensitive
 
- 
 Type:
 
System
Boolean
 
 if it specifies case sensitive, set to
 
true
 
 .
- 
wholeWord
 
- 
 Type:
 
System
Boolean
 
 if it specifies to search a whole word, set to
 
true
 
 .
- 
saveFormatting
 
- 
 Type:
 
System
Boolean
 
 if it specifies save source formatting, set to
 
true
 
 .
Return Value
 
 Type:
 
Int32
 
 
 See Also
See Also