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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'宣言
<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 | |
---|---|---|
CurrentDocument | Gets the active document. | |
CurrentDocumentView | Gets the active document view. | |
CurrentSelectionContainer | Gets the active selection container. | |
CurrentUndoManager | Gets the UndoManager that is assigned to the document window that is active. | |
CurrentWindow | Gets the document pane or tool window pane that is active. | |
CurrentWindowFrame | Gets the document frame or tool window frame that is active. |
Top
Methods
Name | Description | |
---|---|---|
GetCommandContextCookie | Gets the cookie that is assigned to the specified command UI context. | |
IsCommandContextActive(Guid) | Verifies whether the specified command UI context is active. | |
IsCommandContextActive(UInt32) | Verifies whether the command UI context for the specified cookie is active. |
Top
Events
Name | Description | |
---|---|---|
CommandContextChanged | Occurs when the command UI context is activated or deactivated. | |
DocumentChanged | Occurs when the document changes. | |
DocumentWindowChanged | Occurs when the document window changes. | |
SelectionChanged | Occurs when the current selection changes. | |
UndoManagerChanged | Occurs when the current UndoManager changes. | |
WindowChanged | Occurs when the window frame changes. |
Top