TX Text Control .NET for Windows Forms

PageSize Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.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 TextControl.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 TextControl.PageSize to apply the required page dimensions. The change is then applied to the active document or user interface.

textControl.PageSize = new PageSize();
textControl.Update();