TextBox.GetCharacterIndexFromLineIndex(Int32) TextBox.GetCharacterIndexFromLineIndex(Int32) TextBox.GetCharacterIndexFromLineIndex(Int32) TextBox.GetCharacterIndexFromLineIndex(Int32) Method

定义

返回指定行中第一个字符的从零开始的字符索引。Returns the zero-based character index for the first character in the specified line.

public:
 int GetCharacterIndexFromLineIndex(int lineIndex);
public int GetCharacterIndexFromLineIndex (int lineIndex);
member this.GetCharacterIndexFromLineIndex : int -> int
Public Function GetCharacterIndexFromLineIndex (lineIndex As Integer) As Integer

参数

lineIndex
Int32 Int32 Int32 Int32

要为其检索初始字符索引的行的从零开始的索引。The zero-based index of the line to retrieve the initial character index for.

返回

指定行中第一个字符的从零开始的索引。The zero-based index for the first character in the specified line.

适用于

另请参阅