|< Free Open Study >|| |
The Development Tools Environment (DTE) is the root object of the .NET automation object. It has numerous objects that are related directly to it. Those objects are listed in this section.
The AddIn object represents an add-in registered in the Add-in Manager dialog box. The AddIn object provides information to other add-ins. It is also used to pass to the Microsoft Office CommandBar object model methods to identify the add-in requesting to create CommandBar objects.
The AddIns collection contains all of the add-ins listed in the Add-in Manager dialog box.
The BuildEvents object fires events before and after the build starts and completes.
This object causes a Click event to occur when a control on the command bar is clicked.
The DebuggerEvents object defines events supported by the debugger.
This object provides document events when documents close and open.
DTE is the root object of the Visual Studio .NET automation object model. It is provided to add-ins as the applicationObject parameter to the OnConnection method. It is also known as the application object. You must use the applicationObject in an add-in to reference any of the automation objects in the environment. You can also use DTE in macros to reference the automation objects in a macro.
The Events object gives you access to all events in the IDE.
The Find object allows you to execute find operations on documents and files in the IDE. It allows you to search for and replace text in the code editor programmatically.
The FontsAndColorsItems collection contains details related to the color, appearance, and other font-related attributes of an item.
The Globals object is a cache for storing data while an instance of the IDE is extant. You can also persist data between sessions of the IDE using the Globals object.
The IDesignerOptionService object allows you to access the Options dialog box, which is available through Tools → Options in the IDE. You can retrieve and update settings in the dialog box through the use of the GetOptionValue and SetOptionValue methods.
The IDTCommandTarget interface allows you to implement named commands in the environment. It also allows you to define the status of a command or execute it.
If you enter a command that was added with the AddNamedCommand method into the Command window, the Command window first checks to see if the command is enabled or not using the IDTCommandTarget interface's QueryStatus method. The same applies if you call the ExecuteCommand method.
The IDTToolsOptionsPage interface allows you to create your own custom Tools Options pages. When implemented, it provides five methods that act as events within the environment.
The IDTWizard interface allows you to create wizards that can appear in the Add Project and Add Item dialog boxes. When implemented, it provides one method, Exec, whose code executes when the wizard is activated.
The automation extenders portion of the Visual Studio .NET automation model provides the ability to add or filter properties that are displayed in a specified project type.
IFilterProperties should be implemented by an automation extender if it wants to filter one or more Extender properties.
This object performs common file actions.
The Macros object allows you to control the macro recorder from an add-in. You can detect when macros are recording. You can also insert lines of code into amacro and resume recording.
The OutputWindowEvents object provides events for changes to the Output window.
The Properties collection allows you to iterate through the properties of the DTE object.
The Property object relates to a property in a generic collection of properties for a specified object.
The SelectionContainer object is a generic selection-tracking object. There is one global selection object for the environment: DTE.SelectedItems.SelectionContainer. SelectedItems is a collection that represents individual ProjectItem objects from which you can get the Project object. Because an item can offer a selection of an arbitrary object within its context, however, the SelectionContainer can represent any type of selected object.
This object provides events when a selection changes.
This object fires an event when a solution item is added, removed, or renamed.
The StatusBar object represents the status bar in the IDE. The IDE has only one status bar and it is created by the IDE. You can update the progress and text panels of the status bar by using the methods of the StatusBar object.
The TextEditorEvents object fires an event when the cursor is moved to a new line in the TextEditor.
The WindowConfiguration object contains all named window configurations created for the environment. You can save your current window layout in the Visual Studio environment as a named window configuration.
The WindowConfigurations collection contains all such configurations. It is possible to save your current window layout in the Visual Studio environment as a named window configuration. The WindowConfigurations collection is the repository for these configurations.
This object fires an event when the active window changes.
|< Free Open Study >|| |