Share via


IMonitorSelectionService Members

Include Protected Members
Include Inherited Members

Monitors the current selection state in the shell.

The IMonitorSelectionService type exposes the following members.

Methods

 

Name

Description

Public method

GetCommandContextCookie

Gets the cookie that is assigned to the specified command UI context.

Public method

IsCommandContextActive

Overloaded. Verifies whether the specified command UI context or cookie is active.

Top

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

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

IMonitorSelectionService Interface

Microsoft.VisualStudio.Modeling.Shell Namespace