|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How should I convert Rtf to plain text?So far, as a work-around at least, I'm instantiating a RichTextBox, setting
its Rtf property to the rich text I have, then using the Text property to get the plain text. This works, but I expect there's a more efficient way. how about that:
http://www.codeproject.com/cs/library/nrtftree.asp -- Show quoteRegards, Lloyd Dupont NovaMind development team NovaMind Software Mind Mapping Software <www.nova-mind.com> "PIEBALD" <PIEB***@discussions.microsoft.com> wrote in message news:F01AF64B-84DE-4D78-B20B-EAE844B523F4@microsoft.com... > So far, as a work-around at least, I'm instantiating a RichTextBox, > setting > its Rtf property to the rich text I have, then using the Text property to > get > the plain text. > > This works, but I expect there's a more efficient way. PIEBALD wrote:
> So far, as a work-around at least, I'm instantiating a RichTextBox, setting Is this process a bottleneck, then?> its Rtf property to the rich text I have, then using the Text property to get > the plain text. > > This works, but I expect there's a more efficient way. You know what they say about premature optimization... -- Larry Lard Replies to group please |
|||||||||||||||||||||||