Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

Is RTF \highlightN effectively the same as RTF \cbN - setting background color from the color table?

$
0
0

I am working on a bit of code that parses the RTF sent to the clipboard by Visual Studio 2012.  In that RTF, I'm now seeing a \hightlightN control that I hadn't seen generated in previous versions of Visual Studio. Looking at the RTF spec 1.9.1, it's not 100% clear to me whether \hightlightN is effectively the same as \cbN, or is supposed to mean something different. Both controls use indexes (N) into the RTF color table. I'm guessing that both effectively change the background color. But I wanted to check before moving forward with this assumption.

I know that some applications don't handle \cbN (e.g., Windows Word), but that's not an issue for me in this situation, because my code is the last stop for the RTF.

Thanks.


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>