Condividi tramite


ITextBuffer.Changed Event

Definition

Occurs when a non-empty ITextEdit is successfully applied.

public:
 event EventHandler<Microsoft::VisualStudio::Text::TextContentChangedEventArgs ^> ^ Changed;
event EventHandler<Microsoft.VisualStudio.Text.TextContentChangedEventArgs> Changed;
member this.Changed : EventHandler<Microsoft.VisualStudio.Text.TextContentChangedEventArgs> 
Event Changed As EventHandler(Of TextContentChangedEventArgs) 

Event Type

Remarks

This is a performance critical event, whose handlers directly affect typing responsiveness. Unless it's required to handle this event synchronously on the UI thread, please consider listening to ChangedOnBackground event instead.

This event is raised after ChangedHighPriority events and before ChangedLowPriority events.

In the case that a second edit is applied by a listener of the Changed event (or the ChangedLowPriority or ChangedHighPriority events), the Changed events for the second edit won't be raised until all listeners have been notified of the first edit (via ChangedLowPriority, Changed, and ChangedHighPriority events). That is, the events for subsequent edits are queued. This ensures listeners receive the Changed events in the order the edits were applied.

Applies to