TX Text Control .NET Server

PageSize Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Gets the width and height of the loaded document's pages. If the document does not contain a page size the Width and Height is set to 0.

Syntax

public PageSize PageSize { get; }

Examples

The following example reads LoadSettings.PageSize after the template has been loaded.

LoadSettings loadSettings = new();
textControl.Load("template.docx", StreamType.WordprocessingML, loadSettings);
Console.WriteLine($"Page Size: {loadSettings.PageSize}");

Limitations

Read only.