Share via


IMonitorSelectionService.CurrentSelectionContainer Property

Gets the active selection container.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)

Syntax

'Declaration
ReadOnly Property CurrentSelectionContainer As Object
'Usage
Dim instance As IMonitorSelectionService 
Dim value As Object 

value = instance.CurrentSelectionContainer
Object CurrentSelectionContainer { get; }
property Object^ CurrentSelectionContainer {
    Object^ get ();
}
function get CurrentSelectionContainer () : Object

Property Value

Type: System.Object
The active selection container.

Remarks

Command handlers that are derived from the current selection should use this property instead of the CurrentWindow property because the selection container might not be the focused window.

.NET Framework Security

See Also

Reference

IMonitorSelectionService Interface

IMonitorSelectionService Members

Microsoft.VisualStudio.Modeling.Shell Namespace