Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Is RTF \highlightN (generated by VS2012 to the clipboard) effectively the same as RTF \cbN?

$
0
0

I am working on some add-in code that parses the RTF sent to the clipboard by Visual Studio 2012.  In that RTF, I'm now seeing a \highlightN control that I hadn't seen generated in previous versions of Visual Studio. Looking at the RTF 1.9.1 spec, it's not 100% clear to me whether \highlightN is effectively the same as \cbN (setting the background color from an entry in the color table), or if it 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 didn't see the \highlightN control being generated by Visual Studio 2010.

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 (the add-in) is the last stop for the RTF being analyzed.  I just want to be sure that I'm interpreting the intent of \highlightN properly.

Thanks.


Viewing all articles
Browse latest Browse all 4410

Trending Articles



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