简体   繁体   中英

label setting to display updated text from right to left fixed at the end of string

how to make label display updated text from right to left fixed at the end of string, for example if usually update sequence looks like this:

               ⍈ hello
               ⍈ hello world
               ⍈ hi how are you

I want see it this way:

         hello ⍇
   hello world ⍇
hi how are you ⍇

You can set the label ContentAlignment

 label1.AutoSize = true;
 label1.TextAlign = ContentAlignment.TopRight;
 label1.Text = "#Hello";

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM