如何在Visual Studio ..中以编程方式访问Document Well? [英] How do I programmatically access the Document Well in Visual Studio..?

查看:160
本文介绍了如何在Visual Studio ..中以编程方式访问Document Well?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编写一个简单的Visual Studio加载项来管理Document Well中的选项卡.已经有很多这样的加载项,例如Tabs Studio,Tidy Tabs,Visual Docs等,但是我想自己尝试一下.

I would like to write a simple Visual Studio Add-In for managing tabs in the Document Well. There are many such add-ins already available, such as Tabs Studio, Tidy Tabs, Visual Docs, etc, but I would like to try it myself.

在哪里可以找到有关对文档井进行编程的文档.. ???

Where can I find documentation on programming the Document Well..???

我已经在Google以及VS和VSSDK的帮助文件中进行了数天的广泛搜索,但是找不到关于如何正确访问文档的任何文档.我还检查了VSSDK添加的Visual Basic可扩展性和C#可扩展性下的各种项目模板,但是这些似乎都与文档没有任何关系.

I've searched extensively for days with Google, and in the help files for VS and VSSDK, but I cannot find any documentation on how to access the Document Well. I've also examined the various project templates under Visual Basic Extensibility and C# Extensibility that were added by VSSDK, but none of these seem to have anything related to the document well.

我什至跳入了深渊,创建了一个空白项目,并添加了对 all VSSDK安装的DLL文件的引用,然后在对象资源管理器中搜索我相关的每个单词或术语可以想到,但仍然找不到任何与文档关系良好的名称空间,集合或其他对象.我似乎完全失踪或误解了.

I even jumped into the deep end, and created a blank project and added references to all the DLL files that were installed by VSSDK, and then searched the Object Explorer for every related word or term I could think of, but still I could not find any namespaces, collections, or other objects that seem to have anything to do with the document well. I seem to be completely missing or misunderstanding something.

推荐答案

没有公共MS API可以访问文档库.如果只想管理打开的窗口和文档,则可以使用DTE.Windows和DTE.Documents集合.

There is no public MS API to access the Document Well. If you just want to manage open windows and documents, you can use DTE.Windows and DTE.Documents collections.

(我的Tabs Studio"加载项创建了一个全新的标签控件,然后很好地完全替换了内置标签.)

(My Tabs Studio add-in creates a completely new tabs control and then fully replaces the built-in tabs well.)

这篇关于如何在Visual Studio ..中以编程方式访问Document Well?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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