Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IdxRichEditDocument.SetRtfText(string) Method

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

#Declaration

Delphi
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