• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 558
  • Last Modified:

White space in autocentering Label

I have a few multiline labels that have their TextAlign property set to MiddleCenter. I need to move some of the lines off center. I have tried adding spaces before and after the text in those lines, but it appears that TextAlign trims each of the lines before centering them, so my spaces are not taken into account.

Other than centering the text myself, anybody has an idea of how I can force specific lines to move right or left in an autocentered multiline label?
Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger)
1 Solution
What happens if you use a null character rather than a space.  Something like #FF (Alt+255) or " "
Jacques Bourgeois (James Burger)Author Commented:
All-255 does it. Thanks.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now