Replaces all found matches of string "whatReplaceInRtf" by the string "wherewithReplaceInRtf" and returns a new RTF document

Namespace:  SautinSoft
Assembly:  SautinSoft.HtmlToRtf (in SautinSoft.HtmlToRtf.dll) Version: 4.1.8.13

Syntax

      
 C#  Visual Basic 
public string MergeAndReplaceRtfString(
	string rtfSource,
	string whatReplaceInRtf,
	string wherewithReplaceInRtf
)
Public Function MergeAndReplaceRtfString ( _
	rtfSource As String, _
	whatReplaceInRtf As String, _
	wherewithReplaceInRtf As String _
) As String

Parameters

rtfSource
String
Source RTF document where to search matches of "whatReplaceInRtf"
whatReplaceInRtf
String
String in Text or RTF format 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 "whatReplaceInRtf"

Return Value

A new RTF document based on rtf1
null - in case of operation failed

See Also