文字从右到左 [英] Text go from Right to Left
本文介绍了文字从右到左的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发一个可以完成任务的程序,但是当我告诉标签将文本更改为更长的文本时,文本会跳到框外,我试过了检查RightToLeft功能,但没有做任何事情。
示例图片: http:// imgur .com / wHoNKVD [ ^ ]
解决方案
感谢您回答我的问题。
如果你使用一些从右到左的书写系统,我强烈建议使用其他UI属性对于更改所涉及控件的行为和可视化非常重要,例如:对齐方向,导航方向(按Tab键),流动布局的流向等等:
http://msdn.microsoft。 COM / EN-US /库/ SYST em.windows.forms.control.righttoleft%28v = vs.110%29.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/ system.windows.forms.form.righttoleftlayout%28v = vs.110%29.aspx [ ^ ]。
-SA
Hi there! I got a problem! :D
I am working on a program that does stuff, but when I tell a label to change text into something longer, the text goes outside the box, I tried checking the RightToLeft feature but that didnt do anything.
Example image: http://imgur.com/wHoNKVD[^]
解决方案
Thank you for clarifications in response to my questions.
If you use some right-to-left writing systems, I would strongly advise to use additional UI properties which are important to change the behavior and visualization of controls involved, such as: alignment direction, direction of navigation (by Tab), flow direction for flowing layouts, and the like:
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.righttoleft%28v=vs.110%29.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.righttoleftlayout%28v=vs.110%29.aspx[^].
—SA
这篇关于文字从右到左的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文