Addressing Items in Table Cells
|Top Previous Next|
RichViewEdit.GetCurrent***Info and SetCurrent***Info methods differ from their analogs with names without "Current"
Get/SetCurrent***Info methods work with the current item (item at the position of caret) either in parent editor or in cell inplace-editor, depending on where the caret is located.
Get/Set-without-Current methods cannot work with cells (because item in cell cannot be addressed using only ItemNo parameter).
If you used TRichView version 1.3 and you want to work with tables, you should check your code and replace such methods with their "Current" alternatives, or to call them for TopLevelEditor.
All methods (and properties) of editor working with current or selected item(s) can work with cell inplace editors
Methods with ItemNo Parameter
Methods working with the Item-th item cannot work with cells (because item in cell cannot be addressed using only ItemNo parameter). They must be called for the document containing this item (usually, for editing operations, it's TopLevelEditor).
There are some methods which do not have ItemNo parameter:
Events with ItemNo Parameter
For events having both RVData and ItemNo parameter: ItemNo is an index of item in this RVData
In editor, you can use TopLevelEditor.GetSelectionBounds to get information about selection in the edited cell.
Use GetJumpPointLocation to access hypertext item.
Hypertext links are numbered sequentially through the document, including all hyperlinks cells. This number is passed as id parameter in hypertext events
Unlike hypertext links, each subdocument (main document, table cell) has its own list of checkpoints. So methods for checkpoints enumeration cannot find checkpoints in table cell (if called for the main document).
Mandatory page breaks inside tables are not supported yet.
TRichView © trichview.com