
An instance of the PageMargins class represents the page margins of a TX Text Control document or document section. The measure depends on the TextControl.PageUnit, WPF.TextControl.PageUnit or ServerTextControl.PageUnit property.
[C#]
public class PageMargins
[Visual Basic]
Public Class PageMargins
| Constructor | Description | |
| PageMargins | Initializes a new instance of the PageMargins class. |
| Property | Description | |
| Bottom | Specifies the bottom margin of a TX Text Control document or document section. | |
| Left | Specifies the left margin of a TX Text Control document or document section. | |
| Right | Specifies the right margin of a TX Text Control document or document section. | |
| Top | Specifies the top margin of a TX Text Control document or document section. |
| Enumeration | Description | |
| Attribute | Determines a certain attribute. |
The following example shows how to set the page margins for the current section.
[C#]
TXTextControl.Section section = textControl1.Sections.GetItem();
TXTextControl.PageMargins margins =
new TXTextControl.PageMargins(200, 100, 200, 100);
section.Format.PageMargins = margins;
[Visual Basic]
Dim section As TXTextControl.Section = TextControl1.Sections.GetItem()
Dim margins As TXTextControl.PageMargins = _
New TXTextControl.PageMargins(200, 100, 200, 100)
section.Format.PageMargins = margins