接下来的例子演示了Flex Gumbo中如何通过textJustify样式,设置TextBox文字对齐。
编译本例需要Flex Gumbo build 4285 (4.0.0.4285)版本。
下面是实现代码:
Download: main.mxml
xmlns="http://ns.adobe.com/mxml/2009"
layout="vertical"
verticalAlign="top"
backgroundColor="white">
textAlign="justify"
textJustify="{comboBox.selectedItem}"
width="{slider.value}">
代码:Peter deHaan 翻译/整理/编译
下面是实现代码:
Download: main.mxml
复制代码 代码如下:
layout="vertical"
verticalAlign="top"
backgroundColor="white">
textJustify="{comboBox.selectedItem}"
width="{slider.value}">
代码:Peter deHaan 翻译/整理/编译
以上就是Flex Gumbo 通过textJustify样式设置TextBox文字对齐的例子的详细内容,更多请关注0133技术站其它相关文章!