TRVStyle.GridColor, GridReadOnlyColor, GridStyle, GridReadOnlyStyle

<< Click to display table of contents >>

TRVStyle.GridColor, GridReadOnlyColor, GridStyle, GridReadOnlyStyle

Colors and styles of table grid lines.

property GridColor: TRVColor;

property GridReadOnlyColor: TRVColor;

property GridStyle: TRVPenStyle;

property GridReadOnlyStyle: TRVPenStyle;

(introduced in version 14)

GridColor and GridStyle are used for drawing invisible borders of tables in editing mode.

GridReadOnlyColor and GridReadOnlyStyle are used for drawing invisible borders of tables in TRichView or in TRichViewEdit in read-only mode.

Table borders can be invisible in the following cases:

their width is 0 (see BorderWidth and CellBorderWidth properties);

some sides are hidden (see VisibleBorders and Cell.VisibleBorders properties).

If a pen style is psClear, or a color is clNone, a grid is not shown. But the recommended way to hide grid lines in all tables in the component is excluding rvoShowGridLines from TRichView.Options.

You can hide/show table grid for the specific table, see rvtoHideGridLines in Table.Options property.

TRichView must be linked with this TRVStyle (see TRichView.Style).

If MainRVStyle is assigned, these properties provide access to the corresponding properties of MainRVStyle.

Default values:

GridColor: rvcllBtnFace;

GridReadOnlyColor: rvclBtnFace;

GridStyle: psDot (VCL and LCL) / rvpsSolid (FireMonkey)

GridReadOnlyStyle: rvpsClear.