Articles in this section
Category / Section

How to align the header text in a WinForms XPTaskBar?

1 min read

HeaderTextAlign

Using the HeaderTextAlign property of the XPTaskBarBox, the header text can be aligned in 3 ways: near, center and far.

C#

this.xpTaskBarBox1.HeaderTextAlign = System.Drawing.StringAlignment.Near;
this.xpTaskBarBox1.HeaderTextAlign = System.Drawing.StringAlignment.Center;
this.xpTaskBarBox1.HeaderTextAlign = System.Drawing.StringAlignment.Far;

VB

Me.xpTaskBarBox1.HeaderTextAlign = System.Drawing.StringAlignment.Near
Me.xpTaskBarBox1.HeaderTextAlign = System.Drawing.StringAlignment.Center
Me.xpTaskBarBox1.HeaderTextAlign = System.Drawing.StringAlignment.Far

Reference link: https://help.syncfusion.com/windowsforms/xptaskbar/xptaskbar-box-settings#header-settings

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied