共用方式為


IVsCodeWindowEvents Interface

Definition

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

public interface class IVsCodeWindowEvents
public interface class IVsCodeWindowEvents
__interface IVsCodeWindowEvents
[System.Runtime.InteropServices.Guid("26ACC7FD-C665-426B-B120-E96762C5DD1A")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsCodeWindowEvents
[System.Runtime.InteropServices.Guid("26ACC7FD-C665-426B-B120-E96762C5DD1A")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsCodeWindowEvents
[<System.Runtime.InteropServices.Guid("26ACC7FD-C665-426B-B120-E96762C5DD1A")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsCodeWindowEvents = interface
[<System.Runtime.InteropServices.Guid("26ACC7FD-C665-426B-B120-E96762C5DD1A")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsCodeWindowEvents = interface
Public Interface IVsCodeWindowEvents
Attributes

Remarks

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.

Methods

OnCloseView(IVsTextView)

Called when a view has been closed.

OnNewView(IVsTextView)

Called when a view has just been created.

Applies to