How do I programmatically access the Document Well in Visual Studio..?

為{幸葍}努か 提交于 2020-01-05 03:50:07

问题


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..???

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.

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.


回答1:


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.

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



来源:https://stackoverflow.com/questions/42518405/how-do-i-programmatically-access-the-document-well-in-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!