TCustomRichView.CopyRTF

<< Click to display table of contents >>

TCustomRichView.CopyRTF

Copies the selected part of the document to the Clipboard as RTF (Rich Text Format).

procedure CopyRTF;

This procedure does nothing if there is nothing selected.

This procedure clears Clipboard before copying.

Settings for RTF saving can be changed in the TRichView component editor.

Options for saving are in RTFOptions property.

By default, items tags are saved as hyperlinks targets. You can customize saving using OnWriteHyperlink event.

You can save additional information about non-text objects in OnWriteObjectProperties event.

This method must be called only when the document is formatted.

See also:

SaveRTF, SaveRTFToStream methods;

RTFOptions property;

UseStyleTemplates property;

Working with selection;

Working with Clipboard.