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

相关文章:

  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2021-12-12
  • 2022-01-17
  • 2021-10-15
  • 2021-11-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
  • 2022-01-03
  • 2022-12-23
  • 2021-08-01
相关资源
相似解决方案