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

Gets the margins of the loaded document's pages. If the document does not contain margins the values are set to -1.

Syntax

public PageMargins PageMargins { get; }

Examples

The following example reads LoadSettings.PageMargins after the template has been loaded.

LoadSettings loadSettings = new();
textControl.Load("template.docx", StreamType.WordprocessingML, loadSettings);
Console.WriteLine($"Page Margins: {loadSettings.PageMargins}");

Limitations

Read only.