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

IdxRichEditSubDocument.AppendRtfText(string,TdxRichEditInsertOptions) Method

Appends a formatted text string to the end of a subdocument.

#Declaration

Delphi
function AppendRtfText(const ARtfText: string; AInsertOptions: TdxRichEditInsertOptions = TdxRichEditInsertOptions.MatchDestinationFormatting): IdxRichEditDocumentRange;

#Parameters

Name Type
ARtfText string
AInsertOptions TdxRichEditInsertOptions

#Returns

Type
IdxRichEditDocumentRange

#Remarks

Call the AppendRtfText function to insert the string in RTF format passed as the ARtfText parameter. Use the optional AInsertOptions parameter to specify whether the inserted string retains its formatting or not. For more information on formatted text insert options, refer to the TdxRichEditInsertOptions type description.

The AppendRtfText function returns the document range corresponding to the text inserted into the main document body, header, footer, or floating text box.

If you need to remove text from the document, invoke the Delete procedure.

See Also