Setting Font & Color for Tables

General TRichView support forum. Please post your questions here
Post Reply
pgkammath
Posts: 30
Joined: Fri Nov 24, 2017 6:16 am

Setting Font & Color for Tables

Post by pgkammath »

Hi,
I want to do the following.
1. How to make the Table Borders Single Line now it is double line
2. How to Set Font and Color for Table Cells.

Thanks in advance

Regards,
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Setting Font & Color for Tables

Post by Sergey Tkachenko »

1) Make table border invisible, and cell borders overlapping:
table.BorderWidth := 0;
table.CellHSpacing := -table.CellBorderWidth;
table.CellVSpacing := -table.CellBorderWidth;

2) Tables and cells do not have default font. You define font in table cells just like font outside tables, using RVStyle.TextStyles. The same for font color. Or do you ask for cell background color?
pgkammath
Posts: 30
Joined: Fri Nov 24, 2017 6:16 am

Re: Setting Font & Color for Tables

Post by pgkammath »

Thank you. Done
Post Reply