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 uses PageMargins property to set the page margins as (100, 100, 100, 100).

TXTextControl.SectionFormat sf = new TXTextControl.SectionFormat(3, new int[] { 1500, 2500, 5000 }, new int[] { 250, 500 });

sf.ColumnLineColor = Color.Black;
sf.ColumnLineWidth = 50;
sf.PageSize        = new TXTextControl.PageSize(500, 1000);
sf.Landscape       = true;
sf.PageMargins     = new TXTextControl.PageMargins(100, 100, 100, 100);

textControl1.Sections.Add(TXTextControl.SectionBreakKind.BeginAtNewPage);

textControl1.Sections.GetItem().Format = sf;