|
TRichViewEdit is a control for editing documents with pictures, tables, Delphi controls and hyperlinks.
Unit RVEdit
Syntax
TCustomRichViewEdit = class(TCustomRichView)
TRichViewEdit = class(TCustomRichViewEdit)
RichViewEdit does not display or edit its content if it is not linked to RVStyle component via Style property.
The most important property settings can be done in the component editor for TRichView. In Delphi (C++Builder) IDE, right click the RichViewEdit object on the form, choose "Settings" in the context menu.
Some abilities of TRichView are disabled in TRichViewEdit, such as:
Hierarchy
TObject
TPersistent
TComponent
TControl
TWinControl
TCustomControl
TRVScroller
TCustomRichView
TCustomRichViewEdit
List of properties, events and methods
grouped in several categories (some entries can be in several groups)
Properties
| ▪ | CurItemStyle – style (or type) of the item at the position of caret; |
See also properties for undo/redo.
Events
| ▪ | OnChange occurs when document is changed; |
| ▪ | OnPaste allows pasting data from the Clipboard in custom formats; |
| ▪ | OnCaretGetOut occurs when user moves caret "outside" the editor; |
General Methods
Inserting Items in the Position of Caret (Insert*** methods)
| ▪ | InsertItem – general method for inserting items, inserts one item (usually used for tables). |
Clipboard Operations
Main methods and events:
| ▪ | CanPaste – "can something be pasted from the Clipboard?"; |
| ▪ | CanPasteRVF – "can RVF (RichView Format) be pasted from the Clipboard?"; |
| ▪ | CanPasteRTF – "can RTF (Rich Text Format) be pasted from the Clipboard?"; |
| ▪ | CutDef cuts selection to the Clipboard; |
| ▪ | Paste pastes from the Clipboard; |
| ▪ | PasteRVF pastes RVF (RichView Format) from the Clipboard; |
| ▪ | PasteRTF pastes RTF (Rich Text Format) from the Clipboard; |
| ▪ | PasteText pastes ANSI text from the Clipboard; |
| ▪ | PasteTextW pastes Unicode text from the Clipboard; |
| ▪ | event OnPaste allows to paste data from the Clipboard in custom formats. |
Also:
Advanced Methods for Modifying Items (Set***InfoEd methods)
Main methods:
Also:
Information about the Item at the Position of Caret (GetCurrent***Info methods)
These methods are equivalent to Get***Info(CurItemNo,...) but work also in of tables.
Main methods:
Also:
Modifying Item in Position of Caret (SetCurrent***Info methods)
These methods are equivalent to Set***InfoEd(CurItemNo,...) but work also in of tables.
Main methods:
Also:
| ▪ | SetCurrentItemExtraStrProperty change value of additional item property; |
| ▪ | InsertPageBreak sets "explicit page break before item" flag; can split current item into two parts. |
Undo/Redo
Main:
| ▪ | property UndoLimit sets capacity of undo buffer; |
| ▪ | UndoAction returns which operation will be undone next; |
| ▪ | Undo undoes the last operation; |
| ▪ | UndoName returns name of custom undo operation which will be undone next; |
| ▪ | RedoAction returns which operation will be redone next; |
| ▪ | Redo redoes the last undone operation; |
| ▪ | RedoName returns name of custom redo operation which will be redone next; |
Also:
Unicode
| ▪ | PasteTextW pastes Unicode text from the Clipboard; |
Live Spelling Check
"Smart Popups"
"Smart popups" are buttons that can be used to set properties for the current (at the position of caret) item.
Properties:
Events:
Related to Tables and Special Items
| ▪ | CanChange checks possibility of performing editing operation (usually it is called before making operations on table). |
Working with Checkpoints
analogs of methods of TRichView:
Methods working with the item at the position of caret:
Methods working with the checkpoint exactly at the position of caret:
|