Hello,
I'm seeking a way to strip a paragraph's SpacingBefore and SpacingAfter properties when pasted into a RichTextBox from an outside source. So far all my attempts at intercepting these properties have proven futile. I've searched these forums for various ways of handling pasted data, yet none have proven effective for my particular situation. I've attempted to enumerate through the document's paragraphs and set each paragraph's SpacingBefore/After property to 0, I've attempted to change the paragraph's properties in the PastCommand handler while enumerating through paragraphs' Inlines to remove certain types (the removal works here, but not the set properties).
I'm hoping to gain advice on how this should be properly done. I can include some code snippets if that would be helpful.
Thank you,
Steve
P.S: It might also be helpful to mention the need for this came after upgrading from Telerik version 2014.1.0224.45 to version 2015.2.728.45, where the outside source styling did not carry into the RichTextBox.