Skip to main content
Participant
January 13, 2010
Answered

TLF set Text Format

  • January 13, 2010
  • 1 reply
  • 1048 views

Hi All,

Are in TLF any function like as3 TextField setTextFormat function?

This topic has been closed for replies.
Correct answer robin_briggs

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

1 reply

robin_briggsCorrect answer
Adobe Employee
January 15, 2010

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