码迷,mamicode.com
首页 > 其他好文 > 详细

LabelControl文本居中显示

时间:2016-11-25 11:44:49      阅读:400      评论:0      收藏:0      [点我收藏+]

标签:appear   设置   his   enter   detail   height   target   bsp   https   

https://www.devexpress.com/Support/Center/Question/Details/Q94915

If you set the AutoSizeMode to None, you will be able to set the Height and Width of the LabelControl,

and align the Text using the LabelControl.Appearance.TextOptions.HAlignment property.

If you need to align the Text to the right, set this property to DevExpress.Utils.HorzAlignment.Far. 

 

先设置AutoSizeMode为None,然后设置LabelControl.Appearance.TextOptions.HAlignment属性为Center

可以考虑设置控件的Height和Width

LabelControl文本居中显示

标签:appear   设置   his   enter   detail   height   target   bsp   https   

原文地址:http://www.cnblogs.com/chucklu/p/6100641.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!