Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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)
public interface IMonitorSelectionService

The IMonitorSelectionService type exposes the following members.

Public propertyCurrentDocumentGets the active document.
Public propertyCurrentDocumentViewGets the active document view.
Public propertyCurrentSelectionContainerGets the active selection container.
Public propertyCurrentUndoManagerGets the UndoManager that is assigned to the document window that is active.
Public propertyCurrentWindowGets the document pane or tool window pane that is active.
Public propertyCurrentWindowFrameGets the document frame or tool window frame that is active.
Public methodGetCommandContextCookieGets the cookie that is assigned to the specified command UI context.
Public methodIsCommandContextActive(Guid)Verifies whether the specified command UI context is active.
Public methodIsCommandContextActive(UInt32)Verifies whether the command UI context for the specified cookie is active.
Public eventCommandContextChangedOccurs when the command UI context is activated or deactivated.
Public eventDocumentChangedOccurs when the document changes.
Public eventDocumentWindowChangedOccurs when the document window changes.
Public eventSelectionChangedOccurs when the current selection changes.
Public eventUndoManagerChangedOccurs when the current UndoManager changes.
Public eventWindowChangedOccurs when the window frame changes.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.