TextEditorEvents 接口

为文本/代码编辑器中的更改提供事件。 使用此接口可实现多种功能,有关此对象的文档,请参考 TextEditorEventsClass

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

语法

声明
<GuidAttribute("23B7A868-6C89-436A-94FA-25D755456A77")> _
Public Interface TextEditorEvents _
    Inherits _TextEditorEvents, _dispTextEditorEvents_Event
[GuidAttribute("23B7A868-6C89-436A-94FA-25D755456A77")]
public interface TextEditorEvents : _TextEditorEvents, 
    _dispTextEditorEvents_Event
[GuidAttribute(L"23B7A868-6C89-436A-94FA-25D755456A77")]
public interface class TextEditorEvents : _TextEditorEvents, 
    _dispTextEditorEvents_Event
[<GuidAttribute("23B7A868-6C89-436A-94FA-25D755456A77")>]
type TextEditorEvents =  
    interface 
        interface _TextEditorEvents 
        interface _dispTextEditorEvents_Event 
    end
public interface TextEditorEvents extends _TextEditorEvents, _dispTextEditorEvents_Event

TextEditorEvents 类型公开以下成员。

方法

  名称 说明
公共方法 add_LineChanged 基础结构。 仅由 Microsoft 内部使用。 (继承自 _dispTextEditorEvents_Event。)
公共方法 remove_LineChanged 基础结构。 仅由 Microsoft 内部使用。 (继承自 _dispTextEditorEvents_Event。)

页首

事件

  名称 说明
公共事件 LineChanged 基础结构。 仅由 Microsoft 内部使用。 (继承自 _dispTextEditorEvents_Event。)

页首

备注

DTE.Events 返回 TextEditorEvents 对象。

示例

<System.ContextStaticAttribute()> Public WithEvents TextEditorEvents As EnvDTE.TextEditorEvents

Public Sub TextEditorEvents_LineChanged(ByVal StartPoint As EnvDTE.TextPoint, ByVal EndPoint As EnvDTE.TextPoint, ByVal Hint As Integer) Handles TextEditorEvents.LineChanged
   MsgBox("test")
End Sub

请参阅

参考

EnvDTE 命名空间