As previously mentioned, documents can have textual or nontextual content. For those documents with textual content, a separate object exists:
TextDocument object provides access to control functions specifically related to text content.
If you have a valid
Document object to start with, and if that
Document object refers to a text document, then a
TextDocument instance can be referenced from the
Document.Object property like this:
TextDocument doc;Document myDocument;doc = myDocument.Object;
Table 14.12 contains the
A text document is represented by ...