[英]Visual Studio - Add a line break in a label via the designer?
I have a label that I want to use to show some text. 我有一个标签,希望用来显示一些文本。 I want to show a few paragraphs of text.
我想显示几段文字。
Is there a way via the designer to make a line break in the text? 通过设计师有没有办法在文本中换行? (\\n\\r just shows \\n\\r)
(\\ n \\ r仅显示\\ n \\ r)
This is WinForms (actually it is Compact Framework.) 这是WinForms(实际上是Compact Framework。)
Select the dropdown next to the label. 选择标签旁边的下拉菜单 。 Then you can just use the
Enter
key to enter line breaks. 然后,您可以使用
Enter
键输入换行符。
You can click the down arrow in the Text property to see a multi-line text field. 您可以单击“文本”属性中的向下箭头以查看多行文本字段。
In the popup, you can press Enter to make a newline. 在弹出窗口中,您可以按Enter换行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.