如何在垂直方向设置标签文本。 [英] How Do I Set A Label Text In Vertical.

查看:89
本文介绍了如何在垂直方向设置标签文本。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发windows应用程序。我想要一个垂直的标签文本,当页面加载时它应该是垂直的。

解决方案

< blockquote>如果你对Label Text Angle没有任何问题,那么这是一个简单的方法。



每次只需添加'\ n'文字中的字符...

以下给出的样本...



<前lang =c#> this .Label.Text = Y\\\
O\\\
U\ n \ n \ nTh, $
;





或者您可以查看< a href =http://www.codeproject.com/Articles/19774/Extended-Vertical-Label-Control-in-C-NET>链接


I'm developing windows application.I want a label text in vertical,when the page is loads it should be vertical.

解决方案

If you don't have any problem with Label Text Angle, Then here is the simple way to do it.

Just Add '\n' after each character in the Text...
Sample Given Below...

this.Label.Text = "Y\nO\nU\nR\n \nT\nE\nX\nT";



OR You may check this Link


这篇关于如何在垂直方向设置标签文本。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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