Page 1 of 1

How to Add string with right alignment

Posted: Mon Oct 03, 2005 6:57 am
by Till
I want to add string into the table. And I need to set a proper alignment. I do it this way:

Code: Select all

table.Cells[2,1].AddNL('My string',1,0);
As you see, ParaNo differs from -1, that's why my string is placed on the next line and the first line is empty. But how to place my string on the first line with proper alignment?

Posted: Mon Oct 03, 2005 7:59 am
by Sergey Tkachenko
1) Each cell initially contains one empty string. So call table.Cells[2,1].Clear; before adding text.
2) The last parameter of AddNL is an index of item in RVStyle.ParaStyles collection. Pass the index of item having the proper value of Alignment property.

Posted: Mon Oct 03, 2005 8:51 am
by Till
Thanks
1) It's the solve for my problem
2) I already know this
:D