EditorControl 类
处理编辑器窗口。
此 API 不兼容 CLS。
继承层次结构
System.Object
Microsoft.VisualStudio.Package.SimpleEditorView
Microsoft.VisualStudio.Package.EditorControl
命名空间: Microsoft.VisualStudio.Package
程序集: Microsoft.VisualStudio.Package.LanguageService.9.0(在 Microsoft.VisualStudio.Package.LanguageService.9.0.dll 中)
Microsoft.VisualStudio.Package.LanguageService.10.0(在 Microsoft.VisualStudio.Package.LanguageService.10.0.dll 中)
Microsoft.VisualStudio.Package.LanguageService(在 Microsoft.VisualStudio.Package.LanguageService.dll 中)
Microsoft.VisualStudio.Package.LanguageService.11.0(在 Microsoft.VisualStudio.Package.LanguageService.11.0.dll 中)
语法
声明
<CLSCompliantAttribute(False)> _
<ComVisibleAttribute(True)> _
Public Class EditorControl _
Inherits SimpleEditorView
[CLSCompliantAttribute(false)]
[ComVisibleAttribute(true)]
public class EditorControl : SimpleEditorView
EditorControl 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
EditorControl | 初始化 EditorControl 新实例。将所提供的缓冲区中的和控件和主要服务提供程序。 |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
Buffer | 获取或设置文本缓冲区。 (继承自 SimpleEditorView。) |
![]() |
ComponentId | 获取或设置编辑器视图的元素 ID。 (继承自 SimpleEditorView。) |
![]() |
ComponentManager | 获取或设置此视图的组件管理器。 (继承自 SimpleEditorView。) |
![]() |
Control | 获取或设置表示编辑器窗口中的控件。 |
![]() |
MenuCommandService | (继承自 SimpleEditorView。) |
![]() |
Site | 获取或设置此视图中 IServiceProvider 。 (继承自 SimpleEditorView。) |
页首
方法
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。