Table of Contents

TTMSFNCRichEditorHTMLIO.Save Method

Saves the rich editor content to the provided stream in the adapter's format.

API unit family: TMSFNCRichEditorIO Declaring type: TTMSFNCRichEditorHTMLIO Inherited from: TTMSFNCRichEditorIO

Overloads

Overload 1

Saves the rich editor content to the provided stream in the adapter's format.

procedure Save(AStream: TStream); overload; virtual; abstract;

Parameters

Name Description
AStream Destination stream for the serialized content.

Overload 2

Saves the editor content as an HTML file at the specified path.

procedure Save(const FileName: string); overload; virtual;

Parameters

Name Description
FileName Output file path.

Overload 3

Saves the editor content as an HTML file, using ImgPath as the base path for external image references.

procedure Save(const FileName: string; ImgPath: string); overload; virtual;

Parameters

Name Description
FileName Output file path.
ImgPath Base folder for image files referenced in the HTML.

Overload 4

Saves the editor content as an HTML file with the specified text encoding.

procedure Save(const FileName: string; AEncoding: TEncoding); overload; virtual;

Parameters

Name Description
FileName Output file path.
AEncoding Text encoding for the output file.

Overload 5

Saves the editor content as an HTML file with image path and text encoding.

procedure Save(const FileName: string; ImgPath: string; AEncoding: TEncoding); overload; virtual;

Parameters

Name Description
FileName Output file path.
ImgPath Base folder for image files.
AEncoding Text encoding for the output file.

Overload 6

Saves the editor content as HTML to the provided stream.

procedure Save(AStream: TStream); override;

Parameters

Name Description
AStream Destination stream.