TX Text Control .NET for Windows Forms

PageSize Constructor

Constructor|Introduced in 16.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Creates 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.

Syntax

PageSize()

Creates a new PageSize object representing an US Letter page size (8.5 x 11 inch).

public PageSize();

PageSize(double, double)

Creates a new PageSize object representing a page size with the specified width and height. The measure for the width and height parameters depends on the TextControl.PageUnit, WPF.TextControl.PageUnit or ServerTextControl.PageUnit property.

public PageSize(double width, double height);
ParameterDescription
width

Specifies the width of the page.

height

Specifies the height of the page.

PageSize(SerializationInfo, StreamingContext)

protected PageSize(SerializationInfo info, StreamingContext context);

Examples

The following example creates a Page Size instance and configures its width setting for a document workflow.

PageSize pageSize = new();
pageSize.Width = 1.0;