I would like to add a superscript to text I am adding to a block. I tried adding the text to a block, and then a TextFragment to the block, but I can't seem to move the text up as a superscript.
block.InsertText(text ?? string.Empty); var frag = new TextFragment(superscript); frag.FontSize = fontSize - 2; block.Insert(frag);
I tried using frag.TextRise but it doesn't seem to affect the vertical offset of the fragment no matter what values I use. I also tried using frag.Position, but that doesn't affect it either. Clearly I am missing something. Perhaps I should use another approach?
Thanks in advance,