TX Text Control .NET Server

ScrollOrientation 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 a value which determines whether the change is the result of scrolling, either through setting the view's location in the document or through autoscrolling initiated through the control when the input position leaves the visible part of the document.

Syntax

public ScrollOrientation ScrollOrientation { get; }

Members

ValueDescription
NoneThe changes are not the result of a scroll operation. The rectangular area is added to the view's update region.
HorizontalScrollThe view has been scrolled horizontally. The ScrollDistance property determines the amount. When the system, which shows the view's image allows scrolling, the appropriate scrolling function can be used to avoid repainting the complete view. The ClipRectangle property gets the clipping rectangle of the part which must be repainted.
VerticalScrollThe view has been scrolled vertically.

Examples

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

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

Limitations

Read only.