Skip to main content
Known Participant
September 24, 2009
Question

Is there a way to clear formatting?

  • September 24, 2009
  • 1 reply
  • 603 views

I am having issues trying to clear formatting.  ApplyFormatOperation uses the apply method with the incoming TextLayoutFormat.  If I pass in a blank TextLayoutFormat then none of the formatting will change since all of the attributes are set to inherited and passing in null doesn't seem to work either. 

If there is no good way to do it using ApplyFormatOperation or anything else currently built into TLF what do you think a custom operation that would accomplish this look like?

Thanks,

Joel

This topic has been closed for replies.

1 reply

Adobe Employee
September 24, 2009

Not yet with an operation.  It can be done with the model APIs.  There's an open bug on my plate to add an operation for clearing formatting.

Richard

Known Participant
September 24, 2009

Thanks for the response.

Any idea if that is on the top or bottom of your list? 

I need the functionality very soon so I will probably have to do it on my own, any suggestions on implementation?