如何写在一个字符串标,并显示使用MessageBox.Show()? [英] How to write superscript in a string and display using MessageBox.Show()?
本文介绍了如何写在一个字符串标,并显示使用MessageBox.Show()?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想输出的区域使用一个消息框,并应显示为,例如,256单元^ 2 ...
I am trying to output the area using a message box, and it should be displayed as, for example, 256 unit^2...
我怎么能写一标(对权力)和下标(如O2氧气)???
How can I write a superscript (for powers) and a subscript (like O2 for oxygen)???
这家伙在这里增加了像(TM)上标:
This guy here adds a superscript like (TM):
我希望我有我自己清楚!在此先感谢和抱歉的任何不便...
I Hope I got myself clear! Thanks in advance and sorry for any inconvenience...
推荐答案
您可以尝试使用的 unicode的超/标的,例如:
You could try using unicode super/subscripts, for example:
var o2 = "O₂"; // or "O\x2082"
var unit2 = "unit²"; // or "unit\xB2"
如果不工作,我怕你可能会需要编写自己的消息框。
If that doesn't work, I'm afraid you'll probably need to to write your own message box.
这篇关于如何写在一个字符串标,并显示使用MessageBox.Show()?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文