TextBox.ScrollToLine(Int32) 方法

定义

将指定行索引处的行滚动到视图中。Scrolls the line at the specified line index into view.

public:
 void ScrollToLine(int lineIndex);
public void ScrollToLine (int lineIndex);
member this.ScrollToLine : int -> unit
Public Sub ScrollToLine (lineIndex As Integer)

参数

lineIndex
Int32

要滚动到视图中的行的从零开始的行索引。The zero-based line index of the line to scroll into view.

注解

此方法导致文本框滚动到最小数量, 使指定的行进入完整视图。This method causes the text box to scroll by the minimum amount necessary to bring the specified line into full view.

适用于

另请参阅