PageSize Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
Description
Specifies the width and height of the pages for the current document. The measure depends on the ServerTextControl.PageUnit property. The default measure is 1/100th 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 ServerTextControl.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("Server Text Control: Page Size is available.");
}textControl.PageSize = New PageSize()
If textControl.PageSize IsNot Nothing Then
Console.WriteLine("Server Text Control: Page Size is available.")
End If