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