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 & font etc.
views:
7answers:
1
Q:
In flex, how to find the number of characters that can be fit for a text control of a given height?
+1
A:
I think you need the TextLineMetrics class.
But, I imagine things might be a bit tricky if you're dealing with multiline text.
www.Flextras.com
2010-08-12 19:54:14