PageSize Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public ReadOnly Property PageSize As PageSizeExamples
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}");Dim loadSettings As New LoadSettings()
textControl.Load("template.docx", StreamType.WordprocessingML, loadSettings)
Console.WriteLine($"Page Size: {loadSettings.PageSize}")Limitations
Read only.