如何使用复选框多行文本在Windows窗体中做了什么? [英] How is CheckBox with multi-line text done in Windows Forms?
本文介绍了如何使用复选框多行文本在Windows窗体中做了什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何在Windows窗体的复选框以多行?
How do I extend the text in a Windows Forms CheckBox to more than one line?
推荐答案
您需要使用 \r\\\
,以添加一个新行。您可能需要在代码中做到这一点落后。所以,你的代码将是这样的:
You need to use \r\n
in order to add a new line. You might have to do this in the code behind. So your code would be like this:
myLabel.Text = "New\r\nLine\r\nExample";
这篇关于如何使用复选框多行文本在Windows窗体中做了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文