下标& .NET Windows应用程序C#中的下标 [英] Subscript & Subscript in .NET Windows Application C#

查看:115
本文介绍了下标& .NET Windows应用程序C#中的下标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!



我想制作我的标签下标或上标。我尝试使用特殊字符,但它非常有限。例如,如果我想做m4(4是上标)之类的东西,我在特殊字符列表中找不到它。



我是否需要添加另一个课程?如果是的话,我可以知道该怎么做或向我提供样品。



谢谢。

解决方案

< blockquote>我不认为你可以用一个简单的标签来做到这一点(绝对不能在普通的文本框中完成)。但是你可以转换一个richTextBox来获得相同的效果。



看看这个文章 [ ^ ]因为它有一些示例代码。



另见解决方案此处 [ ^ ]


我想我发现了最好的解决方案:



1.使用RichTextBox,其属性设置为:BorderStyle none,BackColor control和ReadOnly是的。

2.点击此处 设置偏移量。这是下标或上标的设置方式。

3.点击这里 设置字体属性。


Hi guys!

I want to make my label subscript or superscript. I try using special character but it's very limited. For example if I want to do something like m4 (4 is superscripted) I can't find it in the special character list.

Do I have to add another class? If yes, may I know how to do it or provide me with the sample.

Thanks.

解决方案

I don't think you can do this in a straightforward label (and definitely can't be done in a normal textbox). However you could convert a richTextBox to get the same effect.

Have a look at this article[^] as it has some sample code.

Also see the solutions here[^]


I think I found out the best solution:

1. Use a RichTextBox with properties set with: BorderStyle none, BackColor control, and ReadOnly true.
2. Click here to set the offset. This is how subscript or superscript is set.
3. Click here to set the font attributes.


这篇关于下标&amp; .NET Windows应用程序C#中的下标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆