Additional Properties and Methods of TRVTableCellData

<< Click to display table of contents >>

Additional Properties and Methods of TRVTableCellData

TRVTableCellData has many properties and methods, similar to properties and methods of TRichView.

Some of them are listed below.

But when the cell is in editing state, RichViewEdit creates special inplace-editor and temporary moves all cell content to this editor.

To provide correct work with cell content both in normal and in editing state, call methods of cell.GetRVData instead of methods of the cell itself.

When working in editor, you seldom need to access cells' data directly, the most of operations can be performed using the methods that work with item at the caret position, read more.

See also: TRVTableItemInfo.Changed

Cell methods for appending items

(links are to the corresponding methods of TCustomRichView)

AddBreak;

AddBullet;

AddControl;

AddHotspot;

AddFmt, AddItem;

AddNL;

AddPicture;

(note: it's not recommended to use the methods of the group above for cells of table inserted in TRichViewEdit, if editor's UndoLimit<>0)

Obtaining information from cell

GetItemStyle;

GetBreakInfo, GetBulletInfo, GetControlInfo, GetHotspotInfo, GetPictureInfo, GetTextInfo;

GetItemTag, IsParaStart, GetItemPara, IsFromNewLine, GetOffsBeforeItem, GetOffsAfterItem.

Modifying items

SetBreakInfo, SetBulletInfo, SetControlInfo, SetHotspotInfo, SetPictureInfo, SetItemTag.

(note: it's not recommended to use the methods of the group above for cells of table inserted in TRichViewEdit, if editor's UndoLimit<>0)