Applying Methods to Developer Studio Objects
Home Page (Objects) | Overview | FAQ | Reference
Most Developer Studio objects have methods. These represent actions you can take against the objects.
For example, the Open method of the Documents object allows you to open a document. Suppose you create a macro and then save it as MyFile.dsm in your local directory. To open this file, you can use the following code:
Documents.Open ("c:\program files\Microsoft Visual Studio\Common\MSDEV98\Macros\MyFile.dsm")
Similarly, to close this file you can use the Close method of the TextDocument object:
ActiveDocument.Close
For more information about methods, see the method descriptions, and for more examples see Using the Sample Macros provided with Developer Studio.