TX Text Control .NET Server

ScrollDistance Property

Property|Introduced in 24.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll

Description

Gets the amount the document has been scrolled. The direction is determined through the ScrollOrientation property. When the distance is less than zero the document is scrolled down or to the right, otherwise the document is scrolled up or to the left.

Syntax

public int ScrollDistance { get; }

Examples

The following example includes the scroll distance value in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Scroll Distance: {viewChangedEventArgs.ScrollDistance}");
Console.WriteLine("View Changed Event Args is ready for use.");

Limitations

Read only.