Skip to content

Implements an extension method for RichEditDocumentServer to modify the entire document content in a single place.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/word-document-api-iterate-through-all-sub-documents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Word Processing Document API - Iterate through all Sub-documents in a Document

This example implements an extension method for RichEditDocumentServer.Document and specify a delegate that will be executed for each SubDocument in a document. This approach allows you to modify the entire document content in a single place.

Implementation Details

RichEditDocumentServer's document is split into logical parts - SubDocuments. The document body, text boxes, comments, headers and footers for different document sections are stored in separate SubDocuments. Each SubDocument contains its own textual content, fields, bookmarks, hyperlinks, images, and shapes. In scenarios when such document elements should be edited for the entire document, it's necessary to get all document SubDocuments and edit each SubDocument separately.

Files to Review

C# Visual Basic
Program.cs Program.vb
SubDocumentHelper.cs SubDocumentHelper.vb

Documentation

Does this example address your development requirements/objectives?

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

About

Implements an extension method for RichEditDocumentServer to modify the entire document content in a single place.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors 2

  •  
  •  

Languages