TX Text Control .NET for Windows Forms

PageMargins Property

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

Description

Sets the margins saved for the document's pages.

Syntax

public PageMargins PageMargins { set; }

Examples

The following example configures how the current document is exported to WordprocessingML by using SaveSettings.PageMargins.

textControl.Text = "Quarterly results";
SaveSettings saveSettings = new();

saveSettings.PageMargins = new PageMargins();
Console.WriteLine("Page Margins was supplied to the Save Settings workflow.");

textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings);