ViewChangedEventArgs Class
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. Core. SDK
- Assembly
TXTextControl.Server. Core. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. Core. SDK TXTextControl.from the setup.Server. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
- Inherits
- Event
Args - View
Changed Event Args
- Event
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 : EventArgsPublic Class ViewChangedEventArgs
Inherits EventArgsExamples
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.");Console.WriteLine($"Scroll Orientation: {viewChangedEventArgs.ScrollOrientation}")
Console.WriteLine("View Changed Event Args is ready for use.")Members
Properties
| Property | Description |
|---|---|
| ClipRectangle | Gets 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. |
| ScrollDistance | 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. |
| ScrollOrientation | 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. |