Click or drag to resize

HtmlToRtfMergeAndReplaceRtfString Method

Replaces all matches of the string "textToReplace" by the string "wherewithReplaceInRtf" and returns a new RTF document.

Namespace: SautinSoft
Assembly: SautinSoft.HtmlToRtf (in SautinSoft.HtmlToRtf.dll) Version: 2024.5.22
public string MergeAndReplaceRtfString(
	string rtfSource,
	string textToReplace,
	string wherewithReplaceInRtf


rtfSource  String
Source RTF document where to search matches of "whatReplaceInRtf"
textToReplace  String
Textual string which will be replaced by the new string "wherewithReplaceInRtf"
wherewithReplaceInRtf  String
String in RTF format which will be used to replace all matches of string "textToReplace"

Return Value

A new RTF document based on rtfSource
null - in case of operation failed
See Also