Compartilhar via


ViewFilter.OnKillFocus(IVsTextView) Method

Definition

Called when the specified view loses focus.

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

Parameters

view
IVsTextView

[in] An IVsTextView object representing the view that is losing focus.

Implements

Remarks

If you need to handle the event where the view that uses your language service loses focus, then you must derive a class from the ViewFilter class and override this method.

This method is an implementation of the OnKillFocus method on the IVsTextViewEvents interface.

The base method calls the OnKillFocus method on the CodeWindowManager object that was passed to the ViewFilter constructor. This means you can override the CodeWindowManager 's version of OnKillFocus instead of this one if otherwise do not need to override any method in the ViewFilter class.

Applies to