How to remove format of selected text?

General TRichView support forum. Please post your questions here
Post Reply
cakk
Posts: 14
Joined: Thu Dec 17, 2009 2:35 am

How to remove format of selected text?

Post by cakk »

When I selected some text, I want remove any format of it, just like plain text. How can I do it?

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

Post by Sergey Tkachenko »

Do you want to remove all non-text content (such as images, bullets and numbering)? Hyperlinks? What do you want to do with tables?
cakk
Posts: 14
Joined: Thu Dec 17, 2009 2:35 am

Post by cakk »

I means, remove any font style of the selected text. Just like:

This is a test.

after remove the font style:

This is a test.
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Code: Select all

RichViewEdit1.ApplyTextStyle(0);
cakk
Posts: 14
Joined: Thu Dec 17, 2009 2:35 am

Post by cakk »

Thanks!
Post Reply