TX Text Control .NET Server

DocumentSizeChangedEventArgs Class

Class|Introduced in 21.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. DocumentSizeChangedEventArgs

Description

The DocumentSizeChangedEventArgs class informs about a changed document size. The size of the document changes, if there are more or less pages, or if the size of the pages has been changed.

Syntax

public class DocumentSizeChangedEventArgs : EventArgs

Examples

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

Console.WriteLine($"Width: {documentSizeChangedEventArgs.Width}");
Console.WriteLine("Document Size Changed Event Args is ready for use.");

Members

Properties

PropertyDescription
HeightGets the document's height, in twips.
WidthGets the document's width, in twips.