Partager via


Touch.ScrollTo(TextView, Layout, Int32, Int32) Method

Definition

Scrolls the specified widget to the specified coordinates, except constrains the X scrolling position to the horizontal regions of the text that will be visible after scrolling to the specified Y position.

[Android.Runtime.Register("scrollTo", "(Landroid/widget/TextView;Landroid/text/Layout;II)V", "")]
public static void ScrollTo (Android.Widget.TextView? widget, Android.Text.Layout? layout, int x, int y);
[<Android.Runtime.Register("scrollTo", "(Landroid/widget/TextView;Landroid/text/Layout;II)V", "")>]
static member ScrollTo : Android.Widget.TextView * Android.Text.Layout * int * int -> unit

Parameters

widget
TextView
layout
Layout
x
Int32
y
Int32
Attributes

Remarks

Scrolls the specified widget to the specified coordinates, except constrains the X scrolling position to the horizontal regions of the text that will be visible after scrolling to the specified Y position.

Java documentation for android.text.method.Touch.scrollTo(android.widget.TextView, android.text.Layout, int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to