CodeWindowManager.OnSetFocus 方法
调用,同时指定文本视图接收焦点。
命名空间: Microsoft.VisualStudio.Package
程序集: Microsoft.VisualStudio.Package.LanguageService(在 Microsoft.VisualStudio.Package.LanguageService.dll 中)
Microsoft.VisualStudio.Package.LanguageService.10.0(在 Microsoft.VisualStudio.Package.LanguageService.10.0.dll 中)
Microsoft.VisualStudio.Package.LanguageService.11.0(在 Microsoft.VisualStudio.Package.LanguageService.11.0.dll 中)
Microsoft.VisualStudio.Package.LanguageService.9.0(在 Microsoft.VisualStudio.Package.LanguageService.9.0.dll 中)
语法
声明
Public Overridable Sub OnSetFocus ( _
textView As IVsTextView _
)
public virtual void OnSetFocus(
IVsTextView textView
)
参数
- textView
类型:Microsoft.VisualStudio.TextManager.Interop.IVsTextView
[in] 表示接收焦点的视图的 IVsTextView 对象。
备注
,如果存在,则基方法调用文档属性的 DocumentProperties.Refresh 。
在默认托管包框架实现,该方法会从在 ViewFilter 类的 ViewFilter.OnSetFocus 调用以响应 “设置焦点的”的事件。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。