Page 1 of 1

Add Text manually to RVEdit

Posted: Fri May 19, 2017 12:03 pm
by sh17
Hi, how can i add text items manually and format each for themselves

i want to add:

this is a test with bold and italic items

rv.AddTextNLW('this is a test with ',0,paraStyle,paraStyle,true);
rv.AddTextNLW('bold',1,paraStyle,paraStyle,true);
rv.AddTextNLW(' and ',0,paraStyle,paraStyle,true);
...
insert crlf after each item. how can i prevent crlf?

Re: Add Text manually to RVEdit

Posted: Fri May 19, 2017 7:40 pm
by Sergey Tkachenko
rv.AddTextNLW('this is a test with ',0,paraStyle,paraStyle,true);
rv.AddTextNLW('bold',1,-1,paraStyle,true);
rv.AddTextNLW(' and ',0,-1,paraStyle,true);