CodeWindowManager.OnSetFocus Method

Called when the specified text view receives the 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 OnSetFocus ( _
    textView As IVsTextView _
)
用法
Dim instance As CodeWindowManager
Dim textView As IVsTextView

instance.OnSetFocus(textView)
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

CodeWindowManager Members

Microsoft.VisualStudio.Package Namespace