ToolStripTextBox.GetFirstCharIndexFromLine(Int32) 메서드

정의

지정된 줄의 첫 번째 문자 인덱스를 검색합니다.

public:
 int GetFirstCharIndexFromLine(int lineNumber);
public int GetFirstCharIndexFromLine(int lineNumber);
member this.GetFirstCharIndexFromLine : int -> int
Public Function GetFirstCharIndexFromLine (lineNumber As Integer) As Integer

매개 변수

lineNumber
Int32

첫 번째 문자의 인덱스 가져오기 줄입니다.

반품

지정된 줄에 있는 0부터 시작하는 문자 인덱스입니다.

설명

매개 변수가 음수 lineNum 이면 0을 GetFirstCharIndexFromLine 반환합니다. 매개 변수가 lineNum 컨트롤의 줄 수를 초과하면 컨트롤 GetFirstCharIndexFromLine 의 마지막 줄에 대한 첫 번째 문자 인덱스를 반환합니다.

GetFirstCharIndexFromLine 는 실제 줄의 첫 번째 문자 인덱스입니다. 실제 선은 할당된 선이 아니라 표시된 선입니다. 표시된 줄의 수는 단어 줄 바꿈으로 인해 할당된 줄 수보다 클 수 있습니다. 예를 들어 컨트롤에 두 개의 긴 선을 RichTextBox 할당하고 설정 및 WordWraptrue설정하는 Multiline 경우 두 개의 긴 할당된 줄은 4개의 실제 줄(또는 표시된 선)을 생성합니다.

적용 대상

추가 정보