|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
multiple color + font selections in a richtextbox controlhi, im trying to figure out how to get all the font and color selections of a
richt text box. for instance we could have this: Red (formatted in red color and Arial font) Green (formatted in green color and Times new Roman font) Blue (formatted in blue color and Arial narrow font) so im trying to figure out how i can find the formatting for each one programmatically. like, i need to convert the rtf into HTML, which is easy if the entire thing is the same font or color. but how can i if the fonts and colors are differrent? thanks -- -iwdu15 I think you have to "scan" each char in the rictextbox.
First scan for colors and create an html equivalent. Look at the first char and insert "<red>" for example and scan other chars if they red or not, if you find another color insert "<newcolor>" and so on... Then scan for fonts. Maybe you can scan for both color and font at the same time to superimpose color and font attributes. Show quoteHide quote "iwdu15" <jmmgoalsteratyahoodotcom> wrote in message news:9145EB61-8A8C-46F7-8631-426A3E8E0B77@microsoft.com... > hi, im trying to figure out how to get all the font and color selections of a > richt text box. for instance we could have this: > > Red (formatted in red color and Arial font) > Green (formatted in green color and Times new Roman font) > Blue (formatted in blue color and Arial narrow font) > > so im trying to figure out how i can find the formatting for each one > programmatically. > like, i need to convert the rtf into HTML, which is easy if the entire thing > is the same font or color. but how can i if the fonts and colors are > differrent? thanks > -- > -iwdu15
Resume next in VB.NET ?
Database Connection Problem. Please Help Can I make my Form visible during a debug session? Using A Bound Dataset to insert new Seeking Design Advice ddl selectedindexchanged not firing on first item - I'm using a dataset to populate the ddl object reference not set to an instance of an object error Is this a bug: 2.2 - 0.4 = 1.8 but 1.2 - 0.4 = 0.8000001 ? What's wrong with the combobox in grid webbrowser document text not adding text |
|||||||||||||||||||||||