Skip to content

Explore available approaches to to remove an empty paragraph when appending a content to a document .

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/winforms-richedit-remove-an-empty-paragraph-when-appending-a-content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rich Text Editor for WinForms - How to Remove an Empty Paragraph when Appending a Content to a Document

This example illustrates multiple methods to remove an empty paragraph when appending a content to a document in the RichEditControl (the same is applicable to the Word Processing Document API).

Implementation Details

The application form contains 4 buttons to use different approaches to complete the task.

  1. The first button removes the paragraph mark (e.g., \par in case of RTF format) from the source content being added to a document.

  2. The second buttons searches and removes paragraph marks.

  3. The third button calls the SubDocument.AppendDocumentContent method because it handles this scenario automatically.

  4. The last button uses the SubDocument.Delete method to remove empty paragraphs between tables.

Files to Review

More Examples

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Explore available approaches to to remove an empty paragraph when appending a content to a document .

Topics

Resources

License

Stars

Watchers

Forks