使用DTE进行工具箱集成 [英] Toolbox Integration using DTE

查看:136
本文介绍了使用DTE进行工具箱集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用DTE通过以下步骤集成自定义控件:

•检查Visual Studio的实例是否未运行。如果没有,请继续。

•检索与我们要集成的Visual Studio版本对应的EnvDTE.DTE对象。

•使用以下内容创建虚拟项目DTE对象

•从中获取Toolbox窗口和ToolBox对象。

•查找或创建ToolBoxTab对象。

•在工具箱选项卡中添加项目(ToolBoxTab.ToolBoxItems.Add)。

•等到当前的Visual Studio实例停止运行。





第6步在工具箱选项卡下添加新项目通过ToolBoxItems.Add方法编码。



请帮助我理解ToolBoxItems.Add方法在内部。



谢谢

I am trying to integrate a customized control using DTE via steps:
•Check if an instance of Visual Studio is not running. If not, continue.
•Retrieve an EnvDTE.DTE object corresponding to the version of Visual Studio we want to integrate with.
•Create a "dummy" project using the DTE object
•Obtain Toolbox window and ToolBox object from it.
•Find or create ToolBoxTab object.
•Add item in the Toolbox tab (ToolBoxTab.ToolBoxItems.Add).
•Wait until current instance of Visual Studio stops running.


The 6th step "add new item under the Toolbox tab" is coded via "ToolBoxItems.Add" method.

Please help me in understanding what "ToolBoxItems.Add" method does internally.

Thanks

推荐答案

文档中描述了:ToolBoxItems.Add Method(String,  Object,  vsToolBoxItemFormat) (EnvDTE) [ ^ ]。
It is described in the documentation: ToolBoxItems.Add Method (String, Object, vsToolBoxItemFormat) (EnvDTE)[^].


这篇关于使用DTE进行工具箱集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆