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
'宣告
Public Overridable Sub OnKillFocus ( _
view As IVsTextView _
)
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)
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.