다음을 통해 공유


CodeWindowManager.OnKillFocus(IVsTextView) Method

Definition

Called when the specified text view loses focus.

public:
 virtual void OnKillFocus(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ textView);
public:
 virtual void OnKillFocus(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ textView);
 virtual void OnKillFocus(Microsoft::VisualStudio::TextManager::Interop::IVsTextView const & textView);
public virtual void OnKillFocus (Microsoft.VisualStudio.TextManager.Interop.IVsTextView textView);
abstract member OnKillFocus : Microsoft.VisualStudio.TextManager.Interop.IVsTextView -> unit
override this.OnKillFocus : Microsoft.VisualStudio.TextManager.Interop.IVsTextView -> unit
Public Overridable Sub OnKillFocus (textView As IVsTextView)

Parameters

textView
IVsTextView

[in] The IVsTextView representing the text view that is losing focus.

Remarks

This method provides an opportunity for you do something that depends on where the focus is. If you need to implement such functionality, you must derive a class from the CodeWindowManager class and override this method.

The base method does nothing.

In the default managed package framework implementation, this method is called from Microsoft.VisualStudio.Package.ViewFilter.OnKillFocus in the ViewFilter class in response to a "kill focus" event.

Applies to