IMonitorSelectionService Interface

Monitors the current selection state in the shell.

This API is not CLS-compliant. 

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

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Interface IMonitorSelectionService
[CLSCompliantAttribute(false)]
public interface IMonitorSelectionService
[CLSCompliantAttribute(false)]
public interface class IMonitorSelectionService
[<CLSCompliantAttribute(false)>]
type IMonitorSelectionService =  interface end
public interface IMonitorSelectionService

The IMonitorSelectionService type exposes the following members.

Properties

  Name Description
Public property CurrentDocument Gets the active document.
Public property CurrentDocumentView Gets the active document view.
Public property CurrentSelectionContainer Gets the active selection container.
Public property CurrentUndoManager Gets the UndoManager that is assigned to the document window that is active.
Public property CurrentWindow Gets the document pane or tool window pane that is active.
Public property CurrentWindowFrame Gets the document frame or tool window frame that is active.

Top

Methods

  Name Description
Public method GetCommandContextCookie Gets the cookie that is assigned to the specified command UI context.
Public method IsCommandContextActive(Guid) Verifies whether the specified command UI context is active.
Public method IsCommandContextActive(UInt32) Verifies whether the command UI context for the specified cookie is active.

Top

Events

  Name Description
Public event CommandContextChanged Occurs when the command UI context is activated or deactivated.
Public event DocumentChanged Occurs when the document changes.
Public event DocumentWindowChanged Occurs when the document window changes.
Public event SelectionChanged Occurs when the current selection changes.
Public event UndoManagerChanged Occurs when the current UndoManager changes.
Public event WindowChanged Occurs when the window frame changes.

Top

See Also

Reference

Microsoft.VisualStudio.Modeling.Shell Namespace