Flex 4 中的标签自动换行 [英] Label word wrap in Flex 4

查看:33
本文介绍了Flex 4 中的标签自动换行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Flex 4 beta 中包装 Label 控件(或类似控件)中的文本?在 Flex 3 中,我可以使用 Text 控件,但在 Flex 4 中不再可用.

How can the text in a Label control (or a similar control) be wrapped in Flex 4 beta? In Flex 3 I could use the Text control but this is no longer available in Flex 4.

推荐答案

您可以将 maxDisplayedLineslineBreak 属性与 spark Label 组件一起使用:

You can use maxDisplayedLines and lineBreak properties with spark Label component:

<s:Label  maxDisplayedLines="{-1}"  lineBreak="toFit"   text="...." />

它适用于 Flex 4.5.

It works with Flex 4.5.

这篇关于Flex 4 中的标签自动换行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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