TX Text Control .NET Server

PageMargins Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

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);