PageMargins Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public ReadOnly Property PageMargins As PageMarginsExamples
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}");Dim loadSettings As New LoadSettings()
textControl.Load("template.docx", StreamType.WordprocessingML, loadSettings)
Console.WriteLine($"Page Margins: {loadSettings.PageMargins}")Limitations
Read only.