HtmlToRtfMergeAndReplaceRtfString Method |
Replaces all matches of the string "textToReplace" by the string "wherewithReplaceInRtf" and returns a new RTF document.
Namespace: SautinSoftAssembly: SautinSoft.HtmlToRtf (in SautinSoft.HtmlToRtf.dll) Version: 2024.12.12
Syntax public string MergeAndReplaceRtfString(
string rtfSource,
string textToReplace,
string wherewithReplaceInRtf
)
Public Function MergeAndReplaceRtfString (
rtfSource As String,
textToReplace As String,
wherewithReplaceInRtf As String
) As String
Parameters
- 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
StringA new RTF document based on rtfSource
null - in case of operation failed
See Also