Share via


MonitorSelectionServiceHelper Members

Include Protected Members
Include Inherited Members

Helper class to listen to document selection changes and raise events to other doc windows or tool windows to make related changes, such as content refresh, watermark change, or undo/redo stack changes.

The MonitorSelectionServiceHelper type exposes the following members.

Methods

  Name Description
Public method Dispose Releases resources.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodStatic member GetInstance Returns an instance of this class.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Initialize Initializes an instance of this class.
Public method IsCommandContextActive Returns whether the current CommandContext is active.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a String that represents the current Object. (Inherited from Object.)

Top

Fields

  Name Description
Public fieldStatic member SEID_DocumentFrame Value is 2.
Public fieldStatic member SEID_LastWindowFrame Value is 7.
Public fieldStatic member SEID_PropertyBrowserSID Value is 4.
Public fieldStatic member SEID_ResultList Value is 6.
Public fieldStatic member SEID_StartupProject Value is 3.
Public fieldStatic member SEID_UndoManager Value is 0.
Public fieldStatic member SEID_UserContext Value is 5.
Public fieldStatic member SEID_WindowFrame Value is 1.

Top

Properties

  Name Description
Public property CurrentDocument Gets the currently-selected document.
Public property CurrentDocumentView Gets the currently-selected document window.
Public property CurrentSelectionContainer Gets the current SelectionContainer.
Public property CurrentUndoManager Gets the current Undo manager.
Public property CurrentWindow Gets the currently-selected window.
Public property CurrentWindowFrame Gets the currently-selected window frame.
Public property LastHierarchySelectChangeTime Gets or sets the last environment tick count when a selection changed.
Public property MonitorSelection Gets the cached monitor selection object.

Top

Events

  Name Description
Public event DocumentChanged Called when the doc data changes.
Public event DocumentWindowChanged Called when the document window changes.
Public event SelectionChanged Called when selection changes.
Public event UndoManagerChanged Called when the current undo manager changes.
Public event WindowChanged Called when the window frame changes.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IVsSelectionEvents.OnCmdUIContextChanged
Explicit interface implemetationPrivate method IVsSelectionEvents.OnElementValueChanged
Explicit interface implemetationPrivate method IVsSelectionEvents.OnSelectionChanged

Top

See Also

Reference

MonitorSelectionServiceHelper Class

Microsoft.VisualStudio.Data.Schema.Project.Common.UI Namespace