How to justify text in a label

Unfortunately only the three most basic and simple types of alignment are supported: Right, Left and Center.

The fourth one, Justified or Block, is not supported in any .NET control afaik, not even in a RichtTextBox 🙁

The only workaround would be to add either spaces or better a smaller whitespace character like thin space(U+2009) or hair space (U+200A) between the words i.e. after the regular spaces until the Label‘s Height changes. Then step one back and try to find the next insertion point, i.e. the next line and so on.. until the end of the text is reached.

A little tricky but not terribly hard.

Leave a Comment