Skip to main content
Participant
Jan 13, 2010 3:12 PM UTC
Answered

TLF set Text Format

Hi All,

Are in TLF any function like as3 TextField setTextFormat function?

This topic is closed to new replies. Start a new post to keep the conversation going.
robin_briggsCorrect answer
Adobe Employee
Jan 15, 2010 5:24 AM UTC

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
Jan 15, 2010 5:24 AM UTC

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

Translate