TX Text Control .NET for WPF

ViewChangedEventArgs Class

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

Description

The ViewChangedEventArgs class provides data for the TXDrawingControl.ViewChanged event.

Syntax

public class ViewChangedEventArgs : EventArgs

Examples

The following example includes the clip rectangle value from a View Changed Event Args object in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Clip Rectangle: {viewChangedEventArgs.ClipRectangle}");
Console.WriteLine("View Changed Event Args is ready for use.");

Members

Properties

PropertyDescription
ClipRectangleGets an object of type System.Drawing.Rectangle that represents the region where the control view is changed by UI editing.