ScrollOrientation 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 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; }Public ReadOnly Property ScrollOrientation As ScrollOrientationMembers
| Value | Description |
|---|---|
| None | The changes are not the result of a scroll operation. The rectangular area is added to the view's update region. |
| HorizontalScroll | The 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. |
| VerticalScroll | The 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.");Console.WriteLine($"Scroll Orientation: {viewChangedEventArgs.ScrollOrientation}")
Console.WriteLine("View Changed Event Args is ready for use.")Limitations
Read only.