Adding a TM superScript to a string

青春壹個敷衍的年華 提交于 2019-12-01 14:13:51

问题


I need to add the TM(trademark) superscript symbol next to a title in a C# string. is there anyway to possibly do this? Thanks!


回答1:


This answer is "\u2122" by Hans Passant™

Use the charmap.exe applet and copy/paste the character in your string literal.




回答2:


  1. Click Start
  2. Type Charmap
  3. Open Charmap
  4. Click Advanced View
  5. Type mark
  6. Copy desired value
  7. Paste to your code


来源:https://stackoverflow.com/questions/3496351/adding-a-tm-superscript-to-a-string

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!