A method and apparatus are provided for utilizing a document object model
to manage document parts for use in an electronic document. The document
object model enables a user to retrieve, insert, add, and delete document
parts to and from an electronic document using a programmable interface
from within a word processing application program. A document part
programming interface is exposed in the object model and methods
associated with the object model are called which return objects enabling
the location and management of document parts in a document parts
collection.