| TWPRTFDataCursor Object Properties Methods |
Unit
WPRTEDefs
Declaration
TWPRTFDataCursor = class(TObject)
Hierarchy
TObject <--TWPRTFDataCursor
Subclasses
None
Description
The cursor (text insertion mark) is supported by the class TWPRTFDataCursor. You can reference WPRichText1.TextCursor to access this object.
The same class also manages the standard selection and the special paragraph selection which is used inside of tables.
Note about multi view: Since all references have to be managed we do not support more than one TWPRTFDataCursor for the text. So when the focus changes to a different editor the selection has to be removed and the cursor position has to be stored. You can use markers to store the cursor position and selection!
The TWPRTFDataCursor is created by the RTFData-Collection which holds all blocks of one text. (Body, header, footer, footnotes ...)
The RTF-Engine either display one block or the text body block with overlay from the other TWPRTFDataBlock objects (WYSIWYG header+footer display). Many RTFEngines can be attached to the same RTF text - see TWPRTFStroge.
| Note |
| All attached RTF engines attached to the same TWPRTFDataCollection use the same cursor object. |
| Introduced Properties |
| Introduced Methods |
|
Copyright (C) by WP |