Share via


TextEditorEventsClass 类

此 API 支持 .NET Framework 基础结构,不适合在代码中直接使用。

仅由 Microsoft 内部使用。

继承层次结构

System.Object
  EnvDTE.TextEditorEventsClass

命名空间:  EnvDTE
程序集:  EnvDTE(在 EnvDTE.dll 中)

语法

声明
<GuidAttribute("ADF22C37-0069-4ADF-B12D-D8D47C38FE79")> _
<ClassInterfaceAttribute()> _
Public Class TextEditorEventsClass _
    Implements _TextEditorEvents, TextEditorEvents, _dispTextEditorEvents_Event
[GuidAttribute("ADF22C37-0069-4ADF-B12D-D8D47C38FE79")]
[ClassInterfaceAttribute()]
public class TextEditorEventsClass : _TextEditorEvents, 
    TextEditorEvents, _dispTextEditorEvents_Event
[GuidAttribute(L"ADF22C37-0069-4ADF-B12D-D8D47C38FE79")]
[ClassInterfaceAttribute()]
public ref class TextEditorEventsClass : _TextEditorEvents, 
    TextEditorEvents, _dispTextEditorEvents_Event
[<GuidAttribute("ADF22C37-0069-4ADF-B12D-D8D47C38FE79")>]
[<ClassInterfaceAttribute()>]
type TextEditorEventsClass =  
    class
        interface _TextEditorEvents
        interface TextEditorEvents
        interface _dispTextEditorEvents_Event
    end
public class TextEditorEventsClass implements _TextEditorEvents, TextEditorEvents, _dispTextEditorEvents_Event

TextEditorEventsClass 类型公开以下成员。

构造函数

  名称 说明
公共方法 TextEditorEventsClass 基础结构。仅由 Microsoft 内部使用。

页首

方法

  名称 说明
公共方法 add_LineChanged 基础结构。仅由 Microsoft 内部使用。
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 remove_LineChanged 基础结构。仅由 Microsoft 内部使用。
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

事件

  名称 说明
公共事件 LineChanged 当在文本/代码编辑器中更改了移动插入点的行时发生。

页首

备注

有关此功能,请参考 TextEditorEvents。 不要实例化此类。

从 Visual Studio 2010 中开始,每次文本更改时都会触发文本编辑器事件,在提交更改时不会。

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

EnvDTE 命名空间