다음을 통해 공유


ITextViewLineCollection.GetIndexOfTextLine 메서드

지정된 텍스트 뷰 줄의 텍스트 줄에 있는 인덱스를 가져옵니다.

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

구문

‘선언
Function GetIndexOfTextLine ( _
    textLine As ITextViewLine _
) As Integer
int GetIndexOfTextLine(
    ITextViewLine textLine
)
int GetIndexOfTextLine(
    ITextViewLine^ textLine
)
abstract GetIndexOfTextLine : 
        textLine:ITextViewLine -> int
function GetIndexOfTextLine(
    textLine : ITextViewLine
) : int

매개 변수

반환 값

형식: Int32
인덱스는 ITextViewLine 에 \ 보기의 TextViewLines 목록입니다.

예외

예외 조건
ArgumentNullException

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

ObjectDisposedException

textLine가 삭제된 경우

.NET Framework 보안

참고 항목

참조

ITextViewLineCollection 인터페이스

Microsoft.VisualStudio.Text.Editor 네임스페이스