TextBoxBase.ScrollToEnd 方法

定义

将编辑控件的视图滚动到内容的末尾。Scrolls the view of the editing control to the end of the content.

public:
 void ScrollToEnd();
public void ScrollToEnd ();
member this.ScrollToEnd : unit -> unit
Public Sub ScrollToEnd ()

示例

下面的示例演示如何使用ScrollToEnd方法滚动TextBox控件的内容。The following example demonstrates how to use the ScrollToEnd method to scroll the contents of a TextBox control.

private void scrollEnd(object sender, RoutedEventArgs e)
{
    myTextBox.ScrollToEnd();
}
Private Sub scrollEnd(ByVal sender As Object, ByVal e As RoutedEventArgs)
    myTextBox.ScrollToEnd()
End Sub

适用于

另请参阅