Text Documents
As previously mentioned, documents can have textual or nontextual content. For those documents with textual content, a separate object exists: TextDocument
. 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:
TextDocument doc;Document myDocument;doc = myDocument.Object;
Table 14.12 contains the TextDocument
members.
Tip
A text document is represented by ...
Get Microsoft Visual Studio 2015 Unleashed, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.