TX Text Control .NET for Windows Forms

PageSize Class

Class|Introduced in 16.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.

Description

An instance of the PageSize class represents the page size of a TX Text Control document or document section. The measure depends on the TextControl.PageUnit, WPF.TextControl.PageUnit or ServerTextControl.PageUnit property.

Syntax

public class PageSize

Examples

The following example configures page size for the current document.

PageSize pageSize = textControl.PageSize;
pageSize.Width = 12240;
pageSize.Height = 15840;

Members

Constructors

ConstructorDescription
PageSizeCreates a new instance of the PageSize class. The measure for the width and height parameters depends on the TextControl.PageUnit, WPF.TextControl.PageUnit or ServerTextControl.PageUnit property.

Properties

PropertyDescription
HeightSpecifies the page height of a document or document section. The measure depends on the TextControl.PageUnit, WPF.TextControl.PageUnit or ServerTextControl.PageUnit property.
WidthSpecifies the page width of a document or document section. The measure depends on the TextControl.PageUnit, WPF.TextControl.PageUnit or ServerTextControl.PageUnit property.

Enumerations

EnumerationDescription
AttributeDetermines a certain attribute. This enumeration is used with the Selection.IsCommonValueSelected method.