How do I insert a subscript charachter in a string in C#? I have nor problems appending a superscript 2 in the same string using char.ConvertFromUtf32(178);
, but I struggle with finding a similar solution for the subscripted text. Actually, I'm struggling with finding ANY solution at all to this rather embarrassing issue. :)
views:
43answers:
1
+1
A:
Plain text doesn't have formatting, like superscript, subscript, bold, italic and/or colors.
You need to use some "rich text" format.
The type of "rich text" depends on where you want to use it. Examples: HTML, RTF.
For PDF you need to look into the formatting options provided by your PDF creation library.
Hans Kesting
2010-05-19 07:39:15
There are some options for doing this in the PDF-library (Aspose), but I don't find it very intuitive to do it that way. It entails instatiating a series of text object and appending the subscript part in the relevant place. The superscript solution worked like a charm, so I had hoped there was a similar solution to this problem, but it doesn't seem like that is an option. Thank you Hans.
daft
2010-05-19 07:46:43