TX Text Control .NET for WPF

ScrollLocation Property

Property|Introduced in 16.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the coordinates, in twips, of the upper-left corner of the document's visible part relative to the upper-left corner of the complete document.

Syntax

public Point ScrollLocation { get; set; }

Examples

The following example uses TextControl.ScrollLocation to configure scroll location as part of the text control workflow. The configured value is checked before the workflow continues.

textControl.ScrollLocation = new System.Windows.Point(20, 20);
Console.WriteLine($"Scroll Location used by Text Control: {textControl.ScrollLocation}");

Limitations

Runtime only.