TextEditorEvents 接口
更新:2007 年 11 月
为文本/代码编辑器中的更改提供事件。使用此接口可实现多种功能,有关此对象的文档,请参考 TextEditorEventsClass。
命名空间: EnvDTE
程序集: EnvDTE(在 EnvDTE.dll 中)
语法
声明
<GuidAttribute("23B7A868-6C89-436A-94FA-25D755456A77")> _
Public Interface TextEditorEvents _
Implements _TextEditorEvents, _dispTextEditorEvents_Event
用法
Dim instance As TextEditorEvents
[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
public interface TextEditorEvents extends _TextEditorEvents, _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