tailieunhanh - Developing Visual Studio .NET Macros and Add-Ins phần 2

Sau đó, tôi kiểm tra xem có thể kết nối là False, bởi vì tôi chỉ muốn làm cho những thay đổi nếu cửa sổ hiện nay là một cửa sổ tài liệu. Và nếu đó là một cửa sổ tài liệu, có thể kết nối sẽ được False. Sau đó, khi tôi chuyển thể kết nối với True, điều này gây ra cửa sổ để trở về là một cửa sổ công cụ. | 16 Chapter 1 Then I check whether Linkable is False because I only want to make the changes if the window is presently a document window. And if it s a document window Linkable will be False. Then when I switch Linkable to True this causes the window to switch back to being a tool window. An interesting aspect of Visual Studio .NET is that you can choose whether you want your document windows to be tabbed windows or MDI windows MDI stands for Multiple Document Interface . This applies only to document windows not tool windows. When you open up the Options dialog through Tools1 Options under the Environment category the General options allows you to choose between Tabbed Documents and MDI environment. Be aware that if you change this setting you will have to restart Visual Studio .NET before you will see the changes. Figure shows what the Visual Studio .NET IDE looks like with MDI windows. If you choose Tabbed Documents your document windows will have tabs at the top allowing you to choose which document you wish to edit. Additionally the upperright corner of the document window will have a small box with an x in it that you can click to close the current document. The document window itself will not close unless there is only one document in the window and you close the document. To the left of the close box are two arrows that look like triangles that you use to scroll the tabs into view if there are too many tabs to fit in the view. Figure The IDE with MDI windows. All about Macros and Add-ins 17 Be aware of an odd behavior in Visual Studio .NET that takes some getting used to When you are in Tab Documents mode and you are looking at a window you can press Ctrl Tab to switch to the next window. But next does not necessarily imply the window whose tab is directly to the right of the current window s tab since the IDE maintains a z-order remember that s a front-to-back order that is independent of the order of the tabs. Note also that if you want to go in .