Aracılığıyla paylaş


IProjectionBuffer.SourceSpansChanged Event

Definition

Raised when source spans are added or deleted. It is not raised when the contents of a source span change, for example when a source span becomes empty. When a nonempty span is added or deleted, the SourceBuffersChanged event will be raised first. The sequence of events is: 1) SourceBuffersChanged, 2) SourceSpansChanged, 3) ITextBuffer.Changed. The SourceSpansChanged event is raised first).

public:
 event EventHandler<Microsoft::VisualStudio::Text::Projection::ProjectionSourceSpansChangedEventArgs ^> ^ SourceSpansChanged;
event EventHandler<Microsoft.VisualStudio.Text.Projection.ProjectionSourceSpansChangedEventArgs> SourceSpansChanged;
member this.SourceSpansChanged : EventHandler<Microsoft.VisualStudio.Text.Projection.ProjectionSourceSpansChangedEventArgs> 
Event SourceSpansChanged As EventHandler(Of ProjectionSourceSpansChangedEventArgs) 

Event Type

Remarks

This event is not raised when the contents of a source span change, for example when a source span becomes empty. When a nonempty span is added or deleted, the SourceBuffersChanged event will be raised first.

The sequence of events is:

  1. SourceBuffersChanged

  2. SourceSpansChanged

  3. Changed.

The SourceSpansChanged event is raised first).

Applies to