TX Text Control .NET for WPF

PageMargins Property

Property|Introduced in 16.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.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 WPF.TextControl.PageUnit property. The default measure is device-independent units (1/96th 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 TextControl.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("Text Control: Page Margins is available.");
}