Export (0) Print
Expand All

IVsCodeWindowEvents Interface

Allows a VSPackage to listen to certain events associated with the view that contains an IVsCodeWindow object.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

public interface IVsCodeWindowEvents

The IVsCodeWindowEvents type exposes the following members.

Public methodOnCloseViewCalled when a view has been closed.
Public methodOnNewViewCalled when a view has just been created.

This interface is used to obtain certain view-oriented events (specifically, new view and close view) normally handled by a code window manager.

Notes to Implementers

Implement this interface on the same class that implements the IVsCodeWindow interface to receive new view and close view events in your code window. You do not need to implement this interface if you implement a code window manager with the IVsCodeWindowManager interface.

Notes to Callers

This interface can be obtained by calling the QueryInterface method in the IVsCodeWindow interface. Note that the IVsCodeWindowEvents interface is optional and may not exist on a particular IVsCodeWindow object.

© 2014 Microsoft