Apply
Cut
Run
TOC
Collapse the table of content
Expand the table of content

Apply Method

Visual Studio .NET 2003

Invokes a previously saved named window configuration.

[Visual Basic .NET]
Public Sub Apply() 
[Visual Basic 6]
Sub Apply() 
[C++]
HRESULT __stdcall Apply();
[C#]
public void Apply();
[JScript .NET]
public function Apply()

Remarks

You can save your current window layout in the Visual Studio environment as a named window configuration. Use the Item property of the WindowConfigurations collection to navigate to the desired configuration, and then use the Apply method to recall the configuration.

Example

Sub ApplyExample()
   ' Set references to all necessary objects.
   Dim colWinConfig As WindowConfigurations
   Dim objWinConfig As WindowConfiguration
   colWinConfig = DTE.WindowConfigurations
   objWinConfig = colWinConfig.Item(2)

   ' List the current window configuration, then set it to another one.
   MsgBox("Current active window configuration: " & colWinConfig.ActiveConfigurationName)
   objWinConfig.Apply()
   MsgBox("Current active window configuration: " & colWinConfig.ActiveConfigurationName)
End Sub

See Also

WindowConfiguration Creation Example | WindowConfiguration Selection Example

Applies To: WindowConfiguration Object

Show:
© 2016 Microsoft