TXTextControl.PageMargins Class

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

[C#]
public class PageMargins
[Visual Basic]
Public Class PageMargins

Constructors

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

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.

Enumerations

Enumeration Description
Attribute Determines a certain attribute.

Example

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

See Also