PageSize Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Sets the width and height saved for the document's pages.
Syntax
public PageSize PageSize { set; }Public WriteOnly Property PageSize As PageSizeExamples
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);textControl.Text = "Quarterly results"
Dim saveSettings As New SaveSettings()
saveSettings.PageSize = New PageSize()
Console.WriteLine("Page Size was supplied to the Save Settings workflow.")
textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings)