Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Keyboard: CTRL + ALT + T
Menu: View -> Other Windows -> Document Outline
Command: View.DocumentOutline
Versions: 2008,2010
Published: 11/30/2010
Code: vstipTool0118
The Document Outline is used to get a bird's eye view of items in your project. I've already shown you how to use it with web projects (vstipTool0116 - https://blogs.msdn.com/b/zainnab/archive/2010/11/28/document-outline-web-projects-vstiptool0116.aspx) and WPF/Silverlight projects (vstipTool0117 - https://blogs.msdn.com/b/zainnab/archive/2010/11/29/document-outline-wpf-and-silverlight-projects-vstiptool0117.aspx) now let's look at using it with Windows Form projects.
For this example, I've created a new Windows Forms Application and put a few sample controls on it. Here is what the Document Outline (CTRL + ALT + T) looks like:
Selection
By clicking on any item in the list it will select the item on the Form in Design view:
Context Commands
Additionally, you can access a variety of commands by RIGHT CLICKING any item including renaming the control from the Document Outline:
View Code
You can also press F7 with any item selected to view the code for it but, interestingly, once you do, the Document Outline will not work while in Code view:
Relocate Items
The ability to move items from one container to another is supported as well:
Toolbar Controls
The toolbar supports a variety of functions:
Name Display
You an select different name display styles:
Expand / Collapse
You can expand or collapse the entire outline:
Moving Around
The toolbar even supports moving around within and between containers. I'm personally not a big fan of them over just clicking and dragging but you may find them useful:
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in