IProjectionBuffer.SourceSpansChanged Event

Raised when source spans are added or deleted.

Namespace:  Microsoft.VisualStudio.Text.Projection
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

声明
Event SourceSpansChanged As EventHandler(Of ProjectionSourceSpansChangedEventArgs)
event EventHandler<ProjectionSourceSpansChangedEventArgs> SourceSpansChanged
 event EventHandler<ProjectionSourceSpansChangedEventArgs^>^ SourceSpansChanged {
    void add (EventHandler<ProjectionSourceSpansChangedEventArgs^>^ value);
    void remove (EventHandler<ProjectionSourceSpansChangedEventArgs^>^ value);
}
abstract SourceSpansChanged : IEvent<EventHandler<ProjectionSourceSpansChangedEventArgs>,
    ProjectionSourceSpansChangedEventArgs>
JScript does not support events.

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).

.NET Framework Security

See Also

Reference

IProjectionBuffer Interface

Microsoft.VisualStudio.Text.Projection Namespace