PageSize Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Specifies the width and height of the pages for the current document. The measure depends on the WPF.TextControl.PageUnit property. The default measure is device-independent units (1/96th inch). The property value is an object of the type PageSize. For more information see the description of the PageSize class.
Syntax
public PageSize PageSize { get; set; }Public Property PageSize As PageSizeExamples
The following example uses TextControl.PageSize to apply the required page dimensions. The configured value is checked before the workflow continues.
textControl.PageSize = new PageSize();
if (textControl.PageSize != null)
{
Console.WriteLine("Text Control: Page Size is available.");
}textControl.PageSize = New PageSize()
If textControl.PageSize IsNot Nothing Then
Console.WriteLine("Text Control: Page Size is available.")
End If