Add Text manually to RVEdit

General TRichView support forum. Please post your questions here
Post Reply
sh17
Posts: 38
Joined: Wed Oct 04, 2006 6:55 am

Add Text manually to RVEdit

Post by sh17 » Fri May 19, 2017 12:03 pm

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?

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

Re: Add Text manually to RVEdit

Post by Sergey Tkachenko » Fri May 19, 2017 7:40 pm

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);

Post Reply