TextBox.GetLineLength(Int32) 方法

定義

傳回指定行中的字元數目。

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

指定行中的字元數。

適用於

另請參閱