Scrolls the contents of a Text Control so that the current input position becomes visible.

Introduced: X12.

ScrollTo()

public void ScrollTo();
Public Sub ScrollTo()

ScrollTo(InputPosition.ScrollPosition)

public void ScrollTo(InputPosition.ScrollPosition position);
Public Sub ScrollTo(position As InputPosition.ScrollPosition)

Parameters

Parameter Description
position Specifies an InputPosition.ScrollPosition value.

Examples

This example explains an easy use of the 'TXTextControl.InputPosition.scrollTo' method. Here, the selected 'ScrollPosition' is 'Top', which means that the input position scrolls to the top of the visible portion of the document.

textControl1.InputPosition.ScrollTo(TXTextControl.InputPosition.ScrollPosition.Top);
TextControl1.InputPosition.ScrollTo(TXTextControl.InputPosition.ScrollPosition.Top)