Construtor ProjectionSourceBuffersChangedEventArgs
Inicializa uma nova instância de um ProjectionSourceBuffersChangedEventArgs objeto.
Namespace: Microsoft.VisualStudio.Text.Projection
Assembly: Microsoft.VisualStudio.Text.Data (em Microsoft.VisualStudio.Text.Data.dll)
Sintaxe
'Declaração
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
)
Parâmetros
beforeSnapshot
Tipo: Microsoft.VisualStudio.Text.Projection.IProjectionSnapshotO mais recente IProjectionSnapshot antes da alteração ocorreu.
afterSnapshot
Tipo: Microsoft.VisualStudio.Text.Projection.IProjectionSnapshotO IProjectionSnapshot imediatamente após a alteração ocorreu.
insertedSpans
Tipo: IList<ITrackingSpan>Zero ou mais extensões de origem que foram inseridas no IProjectionBuffer.
deletedSpans
Tipo: IList<ITrackingSpan>Zero ou mais extensões de origem que foram excluídos do IProjectionBuffer.
spanPosition
Tipo: Int32A posição na lista de origem abrange no qual ocorreram as alterações de buffer.
addedBuffers
Tipo: IList<ITextBuffer>A lista de origem adicionada ITextBuffer objetos.
removedBuffers
Tipo: IList<ITextBuffer>A lista de origem removida ITextBuffer objetos.
options
Tipo: Microsoft.VisualStudio.Text.EditOptionsAs opções de edição que foram aplicadas para essa alteração.
editTag
Tipo: ObjectUm objeto arbitrário associado a essa alteração.
Exceções
Exceção | Condição |
---|---|
ArgumentNullException | insertedSpansor deletedSpans or addedBuffers or removedBuffers is nulluma referência nula (Nothing no Visual Basic). |
Segurança do .NET Framework
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiável.