简体   繁体   English

标签设置,以固定在字符串末尾从右到左显示更新的文本

[英]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 您可以设置标签ContentAlignment

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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