TRVTableItemInfo

Properties   Methods   Events

<< Click to display table of contents >>

TRVTableItemInfo

Properties   Methods   Events

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)

Hierarchy

TObject

TPersistent

TCustomRVItemInfo

TRVNonTextItemInfo

TRVFullLineItemInfo

Overview

See overview topics about tables.

Properties

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:

BorderWidth;

BorderStyle;

BorderColor;

BorderLightColor;

VisibleBorders;

also BorderHSpacing, BorderVSpacing.

Properties defining default border around cells:

CellBorderWidth;

CellBorderStyle;

CellBorderColor;

CellBorderLightColor.

Properties defining default colors of cells in rows and columns:

HeadingRowColor, LastRowColor, FirstColumnColor, LastColumnColor, EvenColumnsColor, OddRowsColor, OddColumnsColor, EvenRowsColor

Properties defining spacing between cells:

CellHSpacing;

CellVSpacing;

BorderHSpacing;

BorderVSpacing;

also CellHPadding, CellVPadding.

Background properties:

Color;

Opacity;

BackgroundImage;

BackgroundStyle;

BackgroundImageFileName.

Border colors:

BorderColor;

BorderLightColor;

CellBorderColor;

CellBorderLightColor.

Rules:

HRuleWidth;

HRuleColor;

HOutermostRule;

VRuleWidth;

VRuleColor;

VOutermostRule.

Export:

TextColSeparator;

TextRowSeparator;

BackgroundImageFileName.

Other properties:

Options;

PrintOptions;

HeadingRowCount.

Methods

See operations on tables.

Events

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:

OnCellEditing;

OnDrawBorder.

Related

Drawing table grid;

New row auto insertion.