Hidden Text in TRichView

<< Click to display table of contents >>

Hidden Text in TRichView

Hidden items

Some items can be hidden. Hidden items are displayed only if rvoShowHiddenText is included in the Options property of TRichView control (they are displayed with a special dotted underline).

Text items are hidden, if rvteoHidden is included in the Options property of their style.

Non-text items are hidden, if a non-zero value is assigned to rvepHidden extra item integer property.

Import and Export

RVF (RichView Format): hidden items are saved and loaded as hidden items.

RTF (Rich Text Format) and DocX: hidden items are saved as hidden text and objects. Loading depends on the value of RTFReadProperties.SkipHiddenText property of TRichView control. By default (False), hidden text and objects are not loaded from RTF/DocX (skipped).

HTML: The CSS version of HTML export (HTMLSaveProperties.HTMLSavingType = rvhtmlstNormal) saves hidden items as hidden text and objects. The simple version of HTML export saves hidden items like normal items. Loading depends on the value of HTMLReadProperties.SkipHiddenText property of TRichView control. By default (False), hidden text and objects are not loaded from HTML (skipped).

Text: the text saving methods save a hidden text like a normal text. However, when copying selection to the Clipboard as a text, hidden text is not included.

Markdown: when saving Markdown, hidden text is saved only is TRichView.MarkdownProperties.SaveHiddenText = True.

Performance

A text formatting procedure is somewhat faster, if the option for displaying hidden items (rvoShowHiddenText in Options) is set.