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

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);