TextBox.GetLineLength(Int32) TextBox.GetLineLength(Int32) TextBox.GetLineLength(Int32) TextBox.GetLineLength(Int32) Method

定义

返回指定行中的字符数。Returns the number of characters in the specified line.

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

参数

lineIndex
Int32 Int32 Int32 Int32

要为其返回字符计数的从零开始的行索引。The zero-based line index for which to return a character count.

返回

指定行中的字符数。The number of characters in the specified line.

适用于

另请参阅