ProjectionSourceBuffersChangedEventArgs Constructor
Initializes a new instance of a ProjectionSourceBuffersChangedEventArgs object.
Namespace: Microsoft.VisualStudio.Text.Projection
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
‘선언
Public Sub New ( _
beforeSnapshot As IProjectionSnapshot, _
afterSnapshot As IProjectionSnapshot, _
insertedSpans As IList(Of ITrackingSpan), _
deletedSpans As IList(Of ITrackingSpan), _
spanPosition As Integer, _
addedBuffers As IList(Of ITextBuffer), _
removedBuffers As IList(Of ITextBuffer), _
options As EditOptions, _
editTag As Object _
)
public ProjectionSourceBuffersChangedEventArgs(
IProjectionSnapshot beforeSnapshot,
IProjectionSnapshot afterSnapshot,
IList<ITrackingSpan> insertedSpans,
IList<ITrackingSpan> deletedSpans,
int spanPosition,
IList<ITextBuffer> addedBuffers,
IList<ITextBuffer> removedBuffers,
EditOptions options,
Object editTag
)
public:
ProjectionSourceBuffersChangedEventArgs(
IProjectionSnapshot^ beforeSnapshot,
IProjectionSnapshot^ afterSnapshot,
IList<ITrackingSpan^>^ insertedSpans,
IList<ITrackingSpan^>^ deletedSpans,
int spanPosition,
IList<ITextBuffer^>^ addedBuffers,
IList<ITextBuffer^>^ removedBuffers,
EditOptions options,
Object^ editTag
)
new :
beforeSnapshot:IProjectionSnapshot *
afterSnapshot:IProjectionSnapshot *
insertedSpans:IList<ITrackingSpan> *
deletedSpans:IList<ITrackingSpan> *
spanPosition:int *
addedBuffers:IList<ITextBuffer> *
removedBuffers:IList<ITextBuffer> *
options:EditOptions *
editTag:Object -> ProjectionSourceBuffersChangedEventArgs
public function ProjectionSourceBuffersChangedEventArgs(
beforeSnapshot : IProjectionSnapshot,
afterSnapshot : IProjectionSnapshot,
insertedSpans : IList<ITrackingSpan>,
deletedSpans : IList<ITrackingSpan>,
spanPosition : int,
addedBuffers : IList<ITextBuffer>,
removedBuffers : IList<ITextBuffer>,
options : EditOptions,
editTag : Object
)
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.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | insertedSpans or deletedSpans oraddedBuffers or removedBuffers is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- 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.