​
​
​

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.

Syntax

​public class PageMargins
​Public Class PageMargins

Examples

The following example shows how to set the page margins for the current section.

​TXTextControl.Section section = textControl1.Sections.GetItem();
TXTextControl.PageMargins margins =
    new TXTextControl.PageMargins(200, 100, 200, 100);

section.Format.PageMargins = margins;
​Dim section As TXTextControl.Section = TextControl1.Sections.GetItem()
Dim margins As TXTextControl.PageMargins = _
    New TXTextControl.PageMargins(200, 100, 200, 100)

section.Format.PageMargins = margins

Constructors

Constructor Description
PageMargins Creates a new instance of the PageMargins class.

Enumerations

Enumeration Description
Attribute Determines a certain attribute.

Properties

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.
​