다음을 통해 공유


VirtualSnapshotPoint 생성자 (ITextSnapshotLine, Int32)

새 인스턴스를 초기화 한 VirtualSnapshotPoint 필요에 따라 점을 가상 공간에 지정된 된 줄의 지정 된 오프셋에서를 배치 합니다.

네임스페이스:  Microsoft.VisualStudio.Text
어셈블리:  Microsoft.VisualStudio.Text.Logic(Microsoft.VisualStudio.Text.Logic.dll)

구문

‘선언
Public Sub New ( _
    line As ITextSnapshotLine, _
    offset As Integer _
)
public VirtualSnapshotPoint(
    ITextSnapshotLine line,
    int offset
)
public:
VirtualSnapshotPoint(
    ITextSnapshotLine^ line, 
    int offset
)
new : 
        line:ITextSnapshotLine * 
        offset:int -> VirtualSnapshotPoint
public function VirtualSnapshotPoint(
    line : ITextSnapshotLine, 
    offset : int
)

매개 변수

  • offset
    형식: Int32

    지점의 열(0부터 시작)입니다.

예외

예외 조건
ArgumentNullException

line가 nullNull 참조(Visual Basic의 경우 Nothing)입니다.

ArgumentOutOfRangeException

column음, 또는 열 시작 위치 더하기 보다 작은 시작 위치입니다.

설명

offset해당 줄의 문자 오프셋이입니다. 해당 하는 열 위치 (예를 들어, 줄의 단일 탭으로 구성 됩니다 및 다음 결과 VirtualSnapshotPoint 줄 끝에 오는 하나의 "공간" 오프셋 2 인 경우) 일치 하지 않습니다.

.NET Framework 보안

참고 항목

참조

VirtualSnapshotPoint 구조체

VirtualSnapshotPoint 오버로드

Microsoft.VisualStudio.Text 네임스페이스