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)

Syntax

声明
<InterfaceTypeAttribute()> _
<GuidAttribute("26ACC7FD-C665-426B-B120-E96762C5DD1A")> _
Public Interface IVsCodeWindowEvents
[InterfaceTypeAttribute()]
[GuidAttribute("26ACC7FD-C665-426B-B120-E96762C5DD1A")]
public interface IVsCodeWindowEvents
[InterfaceTypeAttribute()]
[GuidAttribute(L"26ACC7FD-C665-426B-B120-E96762C5DD1A")]
public interface class IVsCodeWindowEvents
[<InterfaceTypeAttribute()>]
[<GuidAttribute("26ACC7FD-C665-426B-B120-E96762C5DD1A")>]
type IVsCodeWindowEvents =  interface end
public interface IVsCodeWindowEvents

The IVsCodeWindowEvents type exposes the following members.

Methods

  Name Description
Public method OnCloseView Called when a view has been closed.
Public method OnNewView Called when a view has just been created.

Top

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.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace