开发者

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

开发者 https://www.devze.com 2023-01-11 03:05 出处:网络
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 cl

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

精彩评论

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