TX Text Control .NET for WPF

PageSize Property

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

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.