CodeWindowManager.OnKillFocus Method
Called when the specified text 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.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
‘선언
Public Overridable Sub OnKillFocus ( _
textView As IVsTextView _
)
‘사용 방법
Dim instance As CodeWindowManager
Dim textView As IVsTextView
instance.OnKillFocus(textView)
public virtual void OnKillFocus(
IVsTextView textView
)
public:
virtual void OnKillFocus(
IVsTextView^ textView
)
abstract OnKillFocus :
textView:IVsTextView -> unit
override OnKillFocus :
textView:IVsTextView -> unit
public function OnKillFocus(
textView : IVsTextView
)
Parameters
- textView
Type: Microsoft.VisualStudio.TextManager.Interop.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 ViewFilter.OnKillFocus in the ViewFilter class in response to a "kill focus" event.
.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.