TX Text Control .NET for WPF

PageSize Property

Property|Introduced in 12.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.Server.dll from the private NuGet feed or Text Control Offline Packages

Description

Specifies the width and height of the pages for the current document. The measure depends on the ServerTextControl.PageUnit property. The default measure is 1/100th inch. The property value is an object of the type PageSize. For more information see the description of the PageSize class.

Syntax

public PageSize PageSize { get; set; }

Examples

The following example uses ServerTextControl.PageSize to apply the required page dimensions. The configured value is checked before the workflow continues.

textControl.PageSize = new PageSize();
if (textControl.PageSize != null)
{
    Console.WriteLine("Server Text Control: Page Size is available.");
}