首页 > 代码库 > LabelControl文本居中显示
LabelControl文本居中显示
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文本居中显示
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。