Set superscript and subscript in formatted text in wpf

后端 未结 8 691
时光说笑
时光说笑 2020-11-27 06:37

How can I set some text as subscript/superscript in FormattedText in WPF?

8条回答
  •  南方客
    南方客 (楼主)
    2020-11-27 07:14

    Setting for superscript works fine with the following code:

    
    2
    
    

    Setting the Baseallignment for subscript in the Span tag did not work for me. I tried the following code and it worked fine.

      
         
      
    

提交回复
热议问题