how to find superscripts in RTF

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Simple tests show that RichtextBox.<span>SelectionCharOffset property corresponds to "upn" RTF tag. (e.g. up3 up0 pair). I need to check for another kind of superscripts that are defined by RTF tags "super" and "nosupersub". These are the
tags that HTML superscripts (<sup> </sup>) are translated to when copying/pasting texts from web pages to RichTextBox. Unfortunately,
<span>SelectionCharOffset does not recognize them.
Is there any other way to find superscripted text within RichTextBox?
Thank you.
Alex


View the full article
 
Back
Top