Поделиться через


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

'Декларация
Public Overridable Sub OnSetFocus ( _
    textView As IVsTextView _
)
public virtual void OnSetFocus(
    IVsTextView textView
)

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