Compartir a través de


WindowConfigurations.ActiveConfigurationName Property

Definition

Gets the name of the currently active window configuration.

public:
 property System::String ^ ActiveConfigurationName { System::String ^ get(); };
public:
 property Platform::String ^ ActiveConfigurationName { Platform::String ^ get(); };
[System.Runtime.InteropServices.DispId(5)]
public string ActiveConfigurationName { [System.Runtime.InteropServices.DispId(5)] get; }
[<System.Runtime.InteropServices.DispId(5)>]
[<get: System.Runtime.InteropServices.DispId(5)>]
member this.ActiveConfigurationName : string
Public ReadOnly Property ActiveConfigurationName As String

Property Value

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

Attributes

Examples

Sub ActiveConfigurationNameExample(dte as DTE)  
    ' 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  
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);  
}  

Applies to