TextBox.GetLineText(Int32) 方法

定义

返回当前显示在指定的行的文本。Returns the text that is currently displayed on the specified line.

public:
 System::String ^ GetLineText(int lineIndex);
public string GetLineText (int lineIndex);
member this.GetLineText : int -> string
Public Function GetLineText (lineIndex As Integer) As String

参数

lineIndex
Int32

要为其检索当前显示的文本的行的从零开始的索引。The zero-based line index for which to retrieve the currently displayed text.

返回

一个字符串,包含当前在指定行上显示的文本的副本。A string containing a copy of the text currently visible on the specified line.

适用于

另请参阅