Function TWPCustomRtfEdit.CodeLoadSaveEmbeddedText(Stream:TStream; format:string; SaveText:Boolean; AName:string; Code:TWPTextObjType; LocateOptions:TWPCodeLocateOptions) : Boolean
Unit: WPCTRMemo
Class: WPCTRMemo.TWPCustomRtfEdit
Parameters
-
Stream:TStream format:string SaveText:Boolean AName:string Code:TWPTextObjType LocateOptions:TWPCodeLocateOptions
Returns
The type of the result value is Boolean.
Description
This function can be used to save or load the text which is wrapped by merge fields, hyperlinks or bookmarks WITHOUT moving the cursor or use the mailmerge function.If wpStartAtCursorPosition was used in parameter LocateOptions the cursor will be positioned after the closing object.
An alternative is to use the regular save and load methods (