Skip to main content
Known Participant
Sep 24, 2009 4:47 PM UTC
Question

Is there a way to clear formatting?

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 is closed to new replies. Start a new post to keep the conversation going.

2 replies

Inspiring
Sep 24, 2009 4:57 PM UTC

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

Translate
Known Participant
Sep 24, 2009 5:41 PM UTC

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?

Translate