Condividi tramite


Costruttore ProjectionSourceSpansChangedEventArgs

Inizializza una nuova istanza di un oggetto ProjectionSourceSpansChangedEventArgs.

Spazio dei nomi:  Microsoft.VisualStudio.Text.Projection
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Sintassi

'Dichiarazione
Public Sub New ( _
    beforeSnapshot As IProjectionSnapshot, _
    afterSnapshot As IProjectionSnapshot, _
    insertedSpans As IList(Of ITrackingSpan), _
    deletedSpans As IList(Of ITrackingSpan), _
    spanPosition As Integer, _
    options As EditOptions, _
    editTag As Object _
)
public ProjectionSourceSpansChangedEventArgs(
    IProjectionSnapshot beforeSnapshot,
    IProjectionSnapshot afterSnapshot,
    IList<ITrackingSpan> insertedSpans,
    IList<ITrackingSpan> deletedSpans,
    int spanPosition,
    EditOptions options,
    Object editTag
)
public:
ProjectionSourceSpansChangedEventArgs(
    IProjectionSnapshot^ beforeSnapshot, 
    IProjectionSnapshot^ afterSnapshot, 
    IList<ITrackingSpan^>^ insertedSpans, 
    IList<ITrackingSpan^>^ deletedSpans, 
    int spanPosition, 
    EditOptions options, 
    Object^ editTag
)
new : 
        beforeSnapshot:IProjectionSnapshot * 
        afterSnapshot:IProjectionSnapshot * 
        insertedSpans:IList<ITrackingSpan> * 
        deletedSpans:IList<ITrackingSpan> * 
        spanPosition:int * 
        options:EditOptions * 
        editTag:Object -> ProjectionSourceSpansChangedEventArgs
public function ProjectionSourceSpansChangedEventArgs(
    beforeSnapshot : IProjectionSnapshot, 
    afterSnapshot : IProjectionSnapshot, 
    insertedSpans : IList<ITrackingSpan>, 
    deletedSpans : IList<ITrackingSpan>, 
    spanPosition : int, 
    options : EditOptions, 
    editTag : Object
)

Parametri

  • spanPosition
    Tipo: Int32

    La posizione in cui le modifiche la quale sono state.

  • editTag
    Tipo: Object

    Un oggetto arbitrario associato a questa modifica.

Eccezioni

Eccezione Condizione
ArgumentNullException

beforeSnapshot, afterSnapshot, insertedSpans, o deletedSpansviene nullriferimento null (Nothing in Visual Basic).

Sicurezza di .NET Framework

Vedere anche

Riferimenti

ProjectionSourceSpansChangedEventArgs Classe

Spazio dei nomi Microsoft.VisualStudio.Text.Projection