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)
声明
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.
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:
SourceSpansChanged
The SourceSpansChanged event is raised first).
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.