IEditorDocumentTextChangeEventSink Interface
Provides the base requirements for an object that can be notified of IEditorDocument text change events.
public interface IEditorDocumentTextChangeEventSink
Remarks
Objects implementing this event sink interface can be registered as a service with an ISyntaxLanguage using the RegisterService(object, object) method. Any object implementing this interface will be notified automatically when related events occur.
Methods
NotifyDocumentTextChanged(SyntaxEditor, EditorSnapshotChangedEventArgs)
Notifies after a text change occurs to an IEditorDocument.
void NotifyDocumentTextChanged(SyntaxEditor editor, EditorSnapshotChangedEventArgs e)
Parameter | Type | Description |
---|---|---|
editor | SyntaxEditor | The SyntaxEditor whose IEditorDocument is changed. |
e | EditorSnapshotChangedEventArgs | The |
NotifyDocumentTextChanging(SyntaxEditor, EditorSnapshotChangingEventArgs)
Notifies before a text change occurs to an IEditorDocument.
void NotifyDocumentTextChanging(SyntaxEditor editor, EditorSnapshotChangingEventArgs e)
Parameter | Type | Description |
---|---|---|
editor | SyntaxEditor | The SyntaxEditor whose IEditorDocument that is changing. |
e | EditorSnapshotChangingEventArgs | The |