PageMargins Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. dll
Description
Gets or sets the margins for the pages of 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 PageMargins. For more information see the description of the PageMargins class.
Syntax
public PageMargins PageMargins { get; set; }Public Property PageMargins As PageMarginsExamples
The following example uses ServerTextControl.PageMargins to apply the required margins to exported pages. The configured value is checked before the workflow continues.
textControl.PageMargins = new PageMargins();
if (textControl.PageMargins != null)
{
Console.WriteLine("Server Text Control: Page Margins is available.");
}textControl.PageMargins = New PageMargins()
If textControl.PageMargins IsNot Nothing Then
Console.WriteLine("Server Text Control: Page Margins is available.")
End If