Several TextStyles in same line into Table.Cells

General TRichView support forum. Please post your questions here
Post Reply
jhonalone
Posts: 31
Joined: Mon Apr 07, 2008 5:59 pm
Location: Madrid

Several TextStyles in same line into Table.Cells

Post by jhonalone »

Hi

I nead your help!

How can I append several text-styles at the same line into table.cells (by code)? Is it possible?

with table.cells(r,c)
do begin
AddNL(), AddTextNL() (Creates new lines for each TextStyle)
Add(), AddText() (aren't usefull)
end;
Sergey Tkachenko
Site Admin
Posts: 17571
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

You can use AddNL() with ParaNo parameter = -1. This means adding in the same paragraph as the previous line. Such calls of AddNL() (with ParaNo=-1) are the same as calls of Add().
AddTextNL() can be used too (with FirstParaNo parameter = -1).
AddText() is a deprecated method.

PS: Each cell initially has one empty text item. Before adding new text, you can delete it by calling Cell.Clear().
Last edited by Sergey Tkachenko on Wed Apr 09, 2008 5:51 am, edited 1 time in total.
jhonalone
Posts: 31
Joined: Mon Apr 07, 2008 5:59 pm
Location: Madrid

Post by jhonalone »

Oh yes, Sergey.

Excuse me, I just forgot the ParaNo=-1 meaning.

That's all right!

Thank you very much.
Post Reply