ScrollTo Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Sets the current input position to the first position of the changed text and scrolls it into the visible part of the document.
Syntax
ScrollTo()
Scrolls the beginning of the tracked change into the visible part of the document using a default position depending on the previous position.
public bool ScrollTo();Public Function ScrollTo() As BooleanScrollTo(InputPosition.ScrollPosition)
Scrolls the beginning of the tracked change into the visible part of the document using the specified position.
public bool ScrollTo(InputPosition.ScrollPosition position);Public Function ScrollTo(position As InputPosition.ScrollPosition) As Boolean| Parameter | Description |
|---|---|
| position | Specifies an InputPosition.ScrollPosition value. |
Return Value
The return value is true, if the document has been scrolled. Otherwise it is false.
Examples
The following example scrolls the next tracked change into view.
TrackedChange trackedChange = textControl.TrackedChanges.GetItem(true);
trackedChange?.ScrollTo();Dim trackedChange As TrackedChange = textControl.TrackedChanges.GetItem(True)
If trackedChange IsNot Nothing Then trackedChange.ScrollTo()