PageMargins Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
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; }Public Property PageMargins As PageMarginsExamples
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.");
}textControl.PageMargins = New PageMargins()
If textControl.PageMargins IsNot Nothing Then
Console.WriteLine("Text Control: Page Margins is available.")
End If