开发者

In flex, how to find the number of characters that can be fit for a text control of a given height?

In flex, I have mx:Text component. How can I find how many characters can fit into it without vertical scroll for a certain height &开发者_运维百科amp; font etc.


I think you need the TextLineMetrics class.

But, I imagine things might be a bit tricky if you're dealing with multiline text.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜