Chapter 4. Modifying Code in the Editor
The Document
and TextDocument
objects, described in this chapter, are the primary tools you will use to add, read, and modify code in the files in your project. Whereas the FileCodeModel
(Chapter 3, “Manipulating Project Components”) and VsLangProject/VsWebsite
objects (Chapter 5, “Supporting Project-Specific Features”) will allow you to insert some code into your code files (class declarations and other structures), they ...
Get Practical Code Generation in .NET: Covering Visual Studio 2005, 2008, and 2010 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.