ProjectionSourceBuffersChangedEventArgs 构造函数

初始化 ProjectionSourceBuffersChangedEventArgs 对象的新实例。

命名空间:  Microsoft.VisualStudio.Text.Projection
程序集:  Microsoft.VisualStudio.Text.Data(在 Microsoft.VisualStudio.Text.Data.dll 中)

语法

声明
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
)

参数

  • spanPosition
    类型:Int32

    源范围列表中发生缓冲区更改的位置。

  • editTag
    类型:Object

    与此更改相关联的任意一个对象。

异常

异常 条件
ArgumentNullException

insertedSpans 或 deletedSpans 或addedBuffers 或 removedBuffers 是 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参阅

参考

ProjectionSourceBuffersChangedEventArgs 类

Microsoft.VisualStudio.Text.Projection 命名空间