TX Text Control .NET Server

ViewChangedEventArgs Class

Class|Introduced in 24.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Server.Core.dll
Install
dotnet add package TXTextControl.TextControl.Core.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.Server.dll from the setup.
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll
Inherits
  1. EventArgs
  2. ViewChangedEventArgs

Description

The ViewChangedEventArgs class provides data for the View.Changed event. This event occurs when a part of the view's image must be updated.

Syntax

public class ViewChangedEventArgs : EventArgs

Examples

The following example includes the scroll orientation value from a View Changed Event Args object 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.");

Members

Properties

PropertyDescription
ClipRectangleGets the rectangular area, in pixels, which is affected through the changes. The coordinates are relative to the top-left corner of the view's image, which is determined through the View.Location and View.Size properties.
ScrollDistanceGets 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.
ScrollOrientationGets 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.