Share via


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.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.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)

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

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

See Also

Reference

CodeWindowManager Class

Microsoft.VisualStudio.Package Namespace