ProjectionSourceBuffersChangedEventArgs Constructor (IProjectionSnapshot^, IProjectionSnapshot^, IList<ITrackingSpan^>^, IList<ITrackingSpan^>^, Int32, IList<ITextBuffer^>^, IList<ITextBuffer^>^, EditOptions, Object^)
Visual Studio 2015
Initializes a new instance of a ProjectionSourceBuffersChangedEventArgs object.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
public: ProjectionSourceBuffersChangedEventArgs( IProjectionSnapshot^ beforeSnapshot, IProjectionSnapshot^ afterSnapshot, IList<ITrackingSpan^>^ insertedSpans, IList<ITrackingSpan^>^ deletedSpans, int spanPosition, IList<ITextBuffer^>^ addedBuffers, IList<ITextBuffer^>^ removedBuffers, EditOptions options, Object^ editTag )
Parameters
- beforeSnapshot
-
Type:
Microsoft.VisualStudio.Text.Projection::IProjectionSnapshot^
The most recent IProjectionSnapshot before the change occurred.
- afterSnapshot
-
Type:
Microsoft.VisualStudio.Text.Projection::IProjectionSnapshot^
The IProjectionSnapshot immediately after the change occurred.
- insertedSpans
-
Type:
System.Collections.Generic::IList<ITrackingSpan^>^
Zero or more source spans that were inserted into the IProjectionBuffer.
- deletedSpans
-
Type:
System.Collections.Generic::IList<ITrackingSpan^>^
Zero or more source spans that were deleted from the IProjectionBuffer.
- spanPosition
-
Type:
System::Int32
The position in the list of source spans at which the buffer changes occurred.
- addedBuffers
-
Type:
System.Collections.Generic::IList<ITextBuffer^>^
The list of added source ITextBuffer objects.
- removedBuffers
-
Type:
System.Collections.Generic::IList<ITextBuffer^>^
The list of removed source ITextBuffer objects.
- options
-
Type:
Microsoft.VisualStudio.Text::EditOptions
The edit options that were applied to this change.
- editTag
-
Type:
System::Object^
An arbitrary object associated with this change.
| Exception | Condition |
|---|---|
| ArgumentNullException | insertedSpans or deletedSpans oraddedBuffers or removedBuffers is null. |
Show: