WindowConfiguration Selection Example

Visual Studio add-ins are deprecated in Visual Studio 2013. You should upgrade your add-ins to VSPackage extensions. For more information about upgrading, see FAQ: Converting Add-ins to VSPackage Extensions.

This example demonstrates how to create, reference, and delete multiple window configurations, as well as how to select and apply them. It takes a snapshot of your current window configuration. After running WinConfigExample2a, move some windows of the Visual Studio environment around, and then run the second procedure, WinConfigExample2b. This takes another snapshot of your current window configuration, and compares it to the first snapshot. It then deletes both window configurations, resetting your environment as it was before.

To use the following examples, copy them to a new add-in project, and then run the first procedure, WinConfigExample2a, in the add-in's OnConnection method. For more information on how to run the code samples as a part of an add-in, see How to: Compile and Run the Automation Object Model Code Examples.

No code example is currently available or this language may not be supported.
Show: