在设计时将NewLine添加到标签的文本 [英] Add NewLine to label's Text at design time

查看:101
本文介绍了在设计时将NewLine添加到标签的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在设计时如何在LabelText中添加换行符?在代码隐藏中有一些有关如何执行此操作的文章,但是似乎还没有关于设计时的文章.

How can I add newlines to a Label's Text at design time? There are some posts on Stack Overflow on how to do this in code-behind, but there is no post about that for design time yet, it seems?

推荐答案

在标签的属性"窗口中单击标签文本"属性时,将出现一个下拉列表,按 Enter即可,转到新行.我刚刚尝试过,它可以在Visual Studio 2010中使用.

When you click on the label Text property in the Property window for the label, a drop down will appear in which you can, when you press Enter, go to the new line. I just tried it, and it works in Visual Studio 2010.

下面是要说明的屏幕截图:

Here's a screenshot to clarify:

这篇关于在设计时将NewLine添加到标签的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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