Export (0) Print
Expand All

ViewFilter.OnKillFocus Method

Called when the specified view loses focus.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

public virtual void OnKillFocus(
	IVsTextView view
)

Parameters

view
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView

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

Implements

IVsTextViewEvents.OnKillFocus(IVsTextView)

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.

Show:
© 2014 Microsoft