As we mentioned, documents can have textual or nontextual content. For those documents with textual content, a separate object—TextDocument—exists. The 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:
Table 13.12 contains the TextDocument members.
A text ...