ScrollDistance Property
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK 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; }Public ReadOnly Property ScrollDistance As IntegerExamples
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.");Console.WriteLine($"Scroll Distance: {viewChangedEventArgs.ScrollDistance}")
Console.WriteLine("View Changed Event Args is ready for use.")Limitations
Read only.