Skip to main content

IdxRichEditDocument.SetRtfText(string) Method

Replaces the current document’s content with the specified RTF-formatted string.

Declaration

procedure SetRtfText(const Value: string);

Parameters

Name Type
Value string

Remarks

Call this procedure to replace the entire document’s content with an RTF-formatted string passed as the Value parameter. The Rich Edit control’s Options.Import.Rtf settings specify how the SetRtfText procedure parses the specified string.

The SetRtfText procedure is the RtfText property’s setter.

Call the AppendRtfText or InsertRtfText function provided by the document or any of its subdocuments to add an RTF-formatted string to the document without removing its current content.

See Also