Text Box Items in TRichView Documents
A text box item is a simplified version of a sidenote. There is no visible text at the place of insertion of this item.
If rvoShowSpecialCharacters is included in RichView.Options, a special marks are displayed in places of insertion of text box items.
Sidenote contains a subdocument. This subdocument is not displayed in TCustomRichView where the text box item is inserted, but it can be printed inside a floating box.
ScaleRichView note: TSRichViewEdit displays and allows editing text boxes.
Class for this item type is TRVTextBoxItemInfo (see for detailed information).
Style of this item type: rvsTextBox (-207)
The following viewer-style method adds item of this type to the end of the document:
The following method returns TRVSidenoteItemInfo object
The following editor-style method inserts item of this type in the position of caret:
The following method returns TRVSidenoteItemInfo object at the position of caret:
The following methods change properties of items as editing operations:
Text box items have all properties of sidenotes, but almost all of them are ignored.
Export to HTML
Text boxes are not exported to HTML.
RTF and DocX
Text boxes are exported to RTF and DocX.
See the comments about export of sidenotes for compatibility with Microsoft Word.
When copying or saving a selected text, text boxes are not included in text. When saving the whole text, they are saved inside , for example:
This is a text[sequence of characters] to show text boxes[text placed in a floating box].