Partager via


TextEditorEvents Interface

Provides events for changes made in the Text/Code Editor. Use this interface for functionality and refer to TextEditorEventsClass for this object's documentation.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
<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

The TextEditorEvents type exposes the following members.

Methods

  Name Description
Public method add_LineChanged Infrastructure. Microsoft Internal Use Only. (Inherited from _dispTextEditorEvents_Event.)
Public method remove_LineChanged Infrastructure. Microsoft Internal Use Only. (Inherited from _dispTextEditorEvents_Event.)

Top

Events

  Name Description
Public event LineChanged Infrastructure. Microsoft Internal Use Only. (Inherited from _dispTextEditorEvents_Event.)

Top

Remarks

The TextEditorEvents object is returned by DTE.Events.

Examples

<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

See Also

Reference

EnvDTE Namespace