<< Click to display table of contents >> TRVTableItemInfo |
TRVTableItemInfo is a class representing table in TRichView documents. This is not a component. Objects of this class are created at runtime and appended to TRichView (see AddItem) or inserted into TRichViewEdit (see InsertItem). Style of this item type: rvsTable (-60)
Unit RVTable.
Syntax
TRVTableItemInfo = class (TRVFullLineItemInfo)
TObject
TPersistent
TRVNonTextItemInfo
TRVFullLineItemInfo
See overview topics about tables.
The most of properties of this class are published. These properties can be saved/loaded in RVF files or streams.
The main property of TRVTableItemInfo is Cells. The number of rows is RowCount, number of columns is ColCount.
Properties of rows are available via Rows property.
Width of table can be defined using BestWidth property.
Properties defining border around the table:
▪also BorderHSpacing, BorderVSpacing.
Properties defining default border around cells:
Properties defining default colors of cells in rows and columns:
▪HeadingRowColor, LastRowColor, FirstColumnColor, LastColumnColor, EvenColumnsColor, OddRowsColor, OddColumnsColor, EvenRowsColor
Properties defining spacing between cells:
▪also CellHPadding, CellVPadding.
Background properties:
▪Color;
▪Opacity;
Border colors:
Rules:
Export:
Other properties:
▪Options;
See operations on tables.
Tables are not components, so events cannot be assigned at design time in the Object Inspector. They must be assigned from code, when the table is created.
Events cannot be saved with tables in RVF files or streams. Reassign them when tables are loaded, use TRichView.OnItemAction event.
Events: