This section describes the main classes of the Aspose.Words Document Object Model (DOM) and its relationships. By using the classes of the Aspose.Words DOM, you can obtain detailed programmatic access to document elements and formatting.
The Aspose.Words Document Object Model (DOM) is an in-memory representation of a Word document. The Aspose.Words DOM allows you to programmatically read, manipulate and modify content and formatting of a Word document.
A sample document showing how it appears in Microsoft Word.
The tree of objects is created when the above document is read into the Aspose.Words DOM.
Document, Section, Paragraph, Table, Shape, Run and all other ellipses on this diagram are Aspose.Words objects that represent elements of a Word document. The objects are organized into a tree. The illustration also shows that the objects in the document tree have various properties.
The document tree in Aspose.Words follows the Composite Design Pattern:
· All node classes ultimately derive from the Node class, which is the basic class in the Aspose.Words Document Object Model.
· Nodes that can contain other nodes, for example Section and Paragraph, derive from the CompositeNode class, which in turn derives from Node.