# com.dte 库模块帮助文档

## com 成员列表 <a id="com" href="#com">&#x23;</a>

### com.dte <a id="com.dte" href="#com.dte">&#x23;</a>
Visual Studio 开发环境 DTE（Development Tools Environment）支持库

### com.dte() <a id="com.dte" href="#com.dte">&#x23;</a>
查找并返回 DTE 实例。  
这是 DTE（Development Tools Environment）对象，也是一个 COM 对象。  
详细用法请参考相关资料，也可用 com.tlbDoc.dump 输出对象的类型库文档。  

参数可指定 VS 进程 ID，或 *.sln 工程文件名或路径。  
如果不指定参数则返回找到的第一个 DTE 实例。

[返回对象:ComStdObject](#ComStdObject)

## ComStdObject 成员列表 <a id="ComStdObject" href="#ComStdObject">&#x23;</a>

### ComStdObject.ActiveDocument <a id="ComStdObject.ActiveDocument" href="#ComStdObject.ActiveDocument">&#x23;</a>
活动文档

### ComStdObject.ActiveSolutionProjects <a id="ComStdObject.ActiveSolutionProjects" href="#ComStdObject.ActiveSolutionProjects">&#x23;</a>
活动项目

### ComStdObject.ActiveWindow <a id="ComStdObject.ActiveWindow" href="#ComStdObject.ActiveWindow">&#x23;</a>
活动窗口

### ComStdObject.AddIns <a id="ComStdObject.AddIns" href="#ComStdObject.AddIns">&#x23;</a>
插件

### ComStdObject.Application <a id="ComStdObject.Application" href="#ComStdObject.Application">&#x23;</a>
应用程序

### ComStdObject.AttachProcesses(pidOrName) <a id="ComStdObject.AttachProcesses" href="#ComStdObject.AttachProcesses">&#x23;</a>
附加到进程。  
参数 @pidOrName 指定要附加的进程 ID 或执行文件名。  
不指定参数附加当前进程。

### ComStdObject.CommandBars <a id="ComStdObject.CommandBars" href="#ComStdObject.CommandBars">&#x23;</a>
命令栏

### ComStdObject.CommandLineArguments <a id="ComStdObject.CommandLineArguments" href="#ComStdObject.CommandLineArguments">&#x23;</a>
命令行参数

### ComStdObject.Commands <a id="ComStdObject.Commands" href="#ComStdObject.Commands">&#x23;</a>
命令

### ComStdObject.ContextAttributes <a id="ComStdObject.ContextAttributes" href="#ComStdObject.ContextAttributes">&#x23;</a>
上下文属性

### ComStdObject.Debugger <a id="ComStdObject.Debugger" href="#ComStdObject.Debugger">&#x23;</a>
调试器对象。  
可用 com.tlbDoc.dump 输出对象的类型库文档。  
用法可参考 AttachProcesses 函数源码。

### ComStdObject.DisplayMode <a id="ComStdObject.DisplayMode" href="#ComStdObject.DisplayMode">&#x23;</a>
显示模式

### ComStdObject.Documents <a id="ComStdObject.Documents" href="#ComStdObject.Documents">&#x23;</a>
文档

### ComStdObject.Edition <a id="ComStdObject.Edition" href="#ComStdObject.Edition">&#x23;</a>
版本

### ComStdObject.Events <a id="ComStdObject.Events" href="#ComStdObject.Events">&#x23;</a>
事件

### ComStdObject.ExecuteCommand <a id="ComStdObject.ExecuteCommand" href="#ComStdObject.ExecuteCommand">&#x23;</a>
执行命令

### ComStdObject.FileName <a id="ComStdObject.FileName" href="#ComStdObject.FileName">&#x23;</a>
文件名

### ComStdObject.Find <a id="ComStdObject.Find" href="#ComStdObject.Find">&#x23;</a>
查找

### ComStdObject.FullName <a id="ComStdObject.FullName" href="#ComStdObject.FullName">&#x23;</a>
完整名称

### ComStdObject.GetObject <a id="ComStdObject.GetObject" href="#ComStdObject.GetObject">&#x23;</a>
获取对象

### ComStdObject.Globals <a id="ComStdObject.Globals" href="#ComStdObject.Globals">&#x23;</a>
全局变量

### ComStdObject.IsOpenFile <a id="ComStdObject.IsOpenFile" href="#ComStdObject.IsOpenFile">&#x23;</a>
是否已打开

### ComStdObject.ItemOperations <a id="ComStdObject.ItemOperations" href="#ComStdObject.ItemOperations">&#x23;</a>
项目操作

### ComStdObject.LaunchWizard <a id="ComStdObject.LaunchWizard" href="#ComStdObject.LaunchWizard">&#x23;</a>
启动向导

### ComStdObject.LocaleID <a id="ComStdObject.LocaleID" href="#ComStdObject.LocaleID">&#x23;</a>
区域标识符

### ComStdObject.Macros <a id="ComStdObject.Macros" href="#ComStdObject.Macros">&#x23;</a>
宏

### ComStdObject.MacrosIDE <a id="ComStdObject.MacrosIDE" href="#ComStdObject.MacrosIDE">&#x23;</a>
宏IDE

### ComStdObject.MainWindow <a id="ComStdObject.MainWindow" href="#ComStdObject.MainWindow">&#x23;</a>
主窗口

### ComStdObject.Mode <a id="ComStdObject.Mode" href="#ComStdObject.Mode">&#x23;</a>
模式

### ComStdObject.Name <a id="ComStdObject.Name" href="#ComStdObject.Name">&#x23;</a>
名称

### ComStdObject.ObjectExtenders <a id="ComStdObject.ObjectExtenders" href="#ComStdObject.ObjectExtenders">&#x23;</a>
对象扩展器

### ComStdObject.OpenFile <a id="ComStdObject.OpenFile" href="#ComStdObject.OpenFile">&#x23;</a>
打开文件

### ComStdObject.Properties <a id="ComStdObject.Properties" href="#ComStdObject.Properties">&#x23;</a>
属性

### ComStdObject.Quit <a id="ComStdObject.Quit" href="#ComStdObject.Quit">&#x23;</a>
退出

### ComStdObject.RegistryRoot <a id="ComStdObject.RegistryRoot" href="#ComStdObject.RegistryRoot">&#x23;</a>
注册表根

### ComStdObject.SatelliteDllPath <a id="ComStdObject.SatelliteDllPath" href="#ComStdObject.SatelliteDllPath">&#x23;</a>
卫星DLL路径

### ComStdObject.SelectedItems <a id="ComStdObject.SelectedItems" href="#ComStdObject.SelectedItems">&#x23;</a>
选中项

### ComStdObject.Solution <a id="ComStdObject.Solution" href="#ComStdObject.Solution">&#x23;</a>
解决方案

### ComStdObject.SourceControl <a id="ComStdObject.SourceControl" href="#ComStdObject.SourceControl">&#x23;</a>
源代码控制

### ComStdObject.StatusBar <a id="ComStdObject.StatusBar" href="#ComStdObject.StatusBar">&#x23;</a>
状态栏

### ComStdObject.SuppressUI <a id="ComStdObject.SuppressUI" href="#ComStdObject.SuppressUI">&#x23;</a>
抑制界面

### ComStdObject.UndoContext <a id="ComStdObject.UndoContext" href="#ComStdObject.UndoContext">&#x23;</a>
撤销上下文

### ComStdObject.UserControl <a id="ComStdObject.UserControl" href="#ComStdObject.UserControl">&#x23;</a>
用户控件

### ComStdObject.Version <a id="ComStdObject.Version" href="#ComStdObject.Version">&#x23;</a>
版本

### ComStdObject.WindowConfigurations <a id="ComStdObject.WindowConfigurations" href="#ComStdObject.WindowConfigurations">&#x23;</a>
窗口配置

### ComStdObject.Windows <a id="ComStdObject.Windows" href="#ComStdObject.Windows">&#x23;</a>
窗口
