我如何调整我的标签文字右侧? [英] How do I align my text in a label to the right side?

查看:183
本文介绍了我如何调整我的标签文字右侧?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此​​,这里是我的文件标签。如果标签太长,它会关闭屏幕从而使我不得不滚动。

So here is my file label. If the label is too long, it will go off the screen thus making me have to scroll.

我已经试过以下属性(不同时间):

I've tried the following properties (separate times):

  • 从右至左的是
  • 的ContentAlignment 作为BottomRight或TopRight
  • RightToLeft as Yes
  • ContentAlignment as BottomRight or TopRight

然而,他们没有工作。什么是正确的属性?

However, none of them are working. What is the correct property?

推荐答案

尝试自动调整设置为(即使一个固定大小的盒子)。然后,你可以使用设置textAlign 属性来对齐文本 - 例如:使用 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.

这篇关于我如何调整我的标签文字右侧?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆