This documentation is archived and is not being maintained.

WindowConfigurations.ActiveConfigurationName Property

Gets the name of the currently active window configuration.

Namespace: EnvDTE
Assembly: EnvDTE (in envdte.dll)

string ActiveConfigurationName { get; }
/** @property */
String get_ActiveConfigurationName ()

function get ActiveConfigurationName () : String

Property Value

A string representing the name of the currently active window configuration.

void ActiveConfigurationNameExample(_DTE dte)
{
    // Set references to all necessary objects.
    WindowConfigurations colWinConfig;
    WindowConfiguration objWinConfig;
    colWinConfig = dte.WindowConfigurations;
    objWinConfig = colWinConfig.Item(2);
        
    // List the current window configuration, then set it to another 
    // one.
    MessageBox.Show("Current active window configuration: " +    
    colWinConfig.ActiveConfigurationName);
    objWinConfig.Apply(false);
    MessageBox.Show("Current active window configuration: " + 
    colWinConfig.ActiveConfigurationName);
}
Show: