In This Article

ITextViewLifecycleEventSink Interface

Provides the base requirements for an object that can be notified of when a ITextView becomes associated and disassociated with a language, via events such as view open/close, document change, or language change.

public interface ITextViewLifecycleEventSink

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

NotifyViewAttached(ITextView)

Occurs when the specified ITextView is attached to a language.

void NotifyViewAttached(ITextView view)
Parameter Type Description
view ITextView

The ITextView that is attached.

NotifyViewDetached(ITextView)

Occurs when the specified ITextView is detached from a language.

void NotifyViewDetached(ITextView view)
Parameter Type Description
view ITextView

The ITextView that is detached.