开发者

In flex, how to have 'justify' text align option

开发者 https://www.devze.com 2023-01-11 14:24 出处:网络
How to make text in fl开发者_如何学Pythonex justified (text-align option)If I understand you correctly, you want the text of your paragraph to be flush on both the right and left sides, which means yo

How to make text in fl开发者_如何学Pythonex justified (text-align option)


If I understand you correctly, you want the text of your paragraph to be flush on both the right and left sides, which means you want to set the textAlign style to be TextAlign.JUSTIFY (which is really just a static member that maps to the string 'justify'.) Hope that helps.


Short questions, short answer:

myLabel.setStyle('textAlign', 'left');
0

精彩评论

暂无评论...
验证码 换一张
取 消