如何将超文本框的文本居中?

时间:2013-04-24 16:30:50

标签: c# winforms infragistics

我有一个包含UltraGroupBox的Windows窗体。

如何将文本集中在UltraGroupBox上?

现在它看起来像这样:

Picture of the form with the title left aligned

1 个答案:

答案 0 :(得分:4)

'将标题置于要绘制的标题区域内。 '如果你想完全改变标题的位置,'使用CaptionAlignment属性。 Me.UltraGroupBox1.HeaderAppearance.TextHAlign = HAlign.Center

修改

您似乎可以使用CaptionAlignment属性

Documentation can be found here

this.ultraGroupBox1.CaptionAlignment = GroupBoxCaptionAlignment.Center;