简体   繁体   English

Visual Studio-通过设计器在标签中添加换行符吗?

[英]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换行。

下拉菜单位于的屏幕截图。

Dropdown is in the properties section. 下拉列表位于属性部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM