TextBox.GetLineIndexFromCharacterIndex(Int32) TextBox.GetLineIndexFromCharacterIndex(Int32) TextBox.GetLineIndexFromCharacterIndex(Int32) TextBox.GetLineIndexFromCharacterIndex(Int32) Method

定义

返回包含指定字符索引的行的从零开始的行索引。Returns the zero-based line index for the line that contains the specified character index.

public:
 int GetLineIndexFromCharacterIndex(int charIndex);
public int GetLineIndexFromCharacterIndex (int charIndex);
member this.GetLineIndexFromCharacterIndex : int -> int
Public Function GetLineIndexFromCharacterIndex (charIndex As Integer) As Integer

参数

charIndex
Int32 Int32 Int32 Int32

要为其检索关联的行索引的从零开始的字符索引。The zero-based character index for which to retrieve the associated line index.

返回

包含指定字符索引的行的从零开始的索引。The zero-based index for the line that contains the specified character index.

适用于

另请参阅