ViewFilter.OnKillFocus Method
Called when the specified view loses focus.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Syntax
'Declaration
Public Overridable Sub OnKillFocus ( _
view As IVsTextView _
)
public virtual void OnKillFocus(
IVsTextView view
)
public:
virtual void OnKillFocus(
IVsTextView^ view
)
abstract OnKillFocus :
view:IVsTextView -> unit
override OnKillFocus :
view:IVsTextView -> unit
public function OnKillFocus(
view : IVsTextView
)
Parameters
view
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView[in] An IVsTextView object representing the view that is losing focus.
Implements
IVsTextViewEvents.OnKillFocus(IVsTextView)
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.