簡體   English   中英

標簽設置,以固定在字符串末尾從右到左顯示更新的文本

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

如何使標簽顯示從右到左固定在字符串末尾的更新文本,例如,如果通常更新序列如下所示:

               ⍈ hello
               ⍈ hello world
               ⍈ hi how are you

我希望這樣看:

         hello ⍇
   hello world ⍇
hi how are you ⍇

您可以設置標簽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