Skip to main content

IdxRichEditSubDocument.AppendRtfText(string,TdxRichEditInsertOptions) Method

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

Declaration

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