TX Text Control .NET for Windows Forms

PageSize Property

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

Description

Sets the width and height saved for the document's pages.

Syntax

public PageSize PageSize { set; }

Examples

The following example configures how the current document is exported to WordprocessingML by using SaveSettings.PageSize.

textControl.Text = "Quarterly results";
SaveSettings saveSettings = new();

saveSettings.PageSize = new PageSize();
Console.WriteLine("Page Size was supplied to the Save Settings workflow.");

textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings);