TLF set Text Format
Hi All,
Are in TLF any function like as3 TextField setTextFormat function?
Hi All,
Are in TLF any function like as3 TextField setTextFormat function?
I would suggest looking at EditManager.applyFormat(). This allows you to apply character-level (leafFormat), paragraph-level (paragraphFormat) or attributes that apply to the whole container, and it handles all the redraw as well. There are lower level APIs on the individual FlowElements that you could use instead, but it's usually less work if you can get applyFormat() to do what you want.
- robin
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.