TX Text Control .NET for Windows Forms

PageMargins Property

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

Description

Gets or sets the section's page margins. The property's value is an object of the type PageMargins.

Syntax

public PageMargins PageMargins { get; set; }

Examples

The following example configures the layout of the first document section by using SectionFormat.PageMargins.

SectionFormat sectionFormat = textControl.Sections[1].Format;

sectionFormat.PageMargins = new PageMargins();
if (sectionFormat.PageMargins != null)
{
    Console.WriteLine("Section Format: Page Margins is available.");
}