ProjectionSourceSpansChangedEventArgs 생성자
ProjectionSourceSpansChangedEventArgs의 새 인스턴스를 초기화합니다.
네임스페이스: 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, _
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
)
매개 변수
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범위 변경이 발생한 위치입니다.
options
형식: Microsoft.VisualStudio.Text.EditOptions이 변경에 적용된 편집 옵션입니다.
editTag
형식: Object이 변경과 관련된 임의의 개체입니다.
예외
예외 | 조건 |
---|---|
ArgumentNullException | beforeSnapshot, afterSnapshot, insertedSpans, or deletedSpansis nullNull 참조(Visual Basic의 경우 Nothing). |
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용를 참조하세요.