TX Text Control .NET for WPF

PageMargins Property

Property|Introduced in 12.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.Server.dll from the private NuGet feed or Text Control Offline Packages

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; }

Examples

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.");
}