CodeWindowManager.OnSetFocus Method
Called when the specified text view receives the focus.
Namespace: Microsoft.VisualStudio.Package
Assemblies: 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.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Syntax
'Declaration
Public Overridable Sub OnSetFocus ( _
textView As IVsTextView _
)
public virtual void OnSetFocus(
IVsTextView textView
)
public:
virtual void OnSetFocus(
IVsTextView^ textView
)
abstract OnSetFocus :
textView:IVsTextView -> unit
override OnSetFocus :
textView:IVsTextView -> unit
public function OnSetFocus(
textView : IVsTextView
)
Parameters
textView
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView[in] The IVsTextView object representing the view that received the focus.
Remarks
The base method calls DocumentProperties.Refresh on the document properties if they exist.
In the default managed package framework implementation, this method is called from ViewFilter.OnSetFocus in the ViewFilter class in response to a "set 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.