【问题标题】:label setting to display updated text from right to left fixed at the end of string标签设置以从右到左显示更新的文本,固定在字符串的末尾
【发布时间】:2017-01-14 12:44:20
【问题描述】:

如何使标签从右到左显示更新的文本,固定在字符串的末尾,例如如果通常更新顺序如下所示:

               ⍈ hello
               ⍈ hello world
               ⍈ hi how are you

我想这样看:

         hello ⍇
   hello world ⍇
hi how are you ⍇

【问题讨论】:

    标签: c# winforms label


    【解决方案1】:

    您可以设置标签ContentAlignment

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-10-26
      • 2018-12-11
      • 2015-09-14
      • 2021-01-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-11
      相关资源
      最近更新 更多