How do I align my text in a label to the right side?
Label label = new Label();
label.AutoSize = false;
label.TextAlign = ContentAlignment.MiddleRight;
Try setting AutoSize
to false
(that makes a fixed size box). Then you can use the TextAlign
property to align the text - e.g. use MiddleRight
. That should do the trick.