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
)
매개 변수
beforeSnapshot
형식: Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot변경이 발생하기 전 가장 최근의 IProjectionSnapshot입니다.
afterSnapshot
형식: Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot변경이 발생한 직후의 IProjectionSnapshot입니다.
insertedSpans
형식: IList<ITrackingSpan>IProjectionBuffer에 삽입된 0개 이상의 소스 범위입니다.
deletedSpans
형식: IList<ITrackingSpan>IProjectionBuffer에서 삭제된 0개 이상의 소스 범위입니다.
spanPosition
형식: Int32소스 범위 목록에서 버퍼 변경이 발생한 위치입니다.
addedBuffers
형식: IList<ITextBuffer>추가된 소스 ITextBuffer 개체의 목록입니다.
removedBuffers
형식: IList<ITextBuffer>제거된 소스 ITextBuffer 개체의 목록입니다.
options
형식: Microsoft.VisualStudio.Text.EditOptions이 변경에 적용된 편집 옵션입니다.
editTag
형식: Object이 변경과 관련된 임의의 개체입니다.
예외
예외 | 조건 |
---|---|
ArgumentNullException | insertedSpansor deletedSpans or addedBuffers or removedBuffers is nullNull 참조(Visual Basic의 경우 Nothing). |
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용를 참조하세요.