TX Text Control .NET for Windows Forms Documentation

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

ConstructorDescription
PageMarginsInitializes a new instance of the PageMargins class.

Properties

PropertyDescription
BottomSpecifies the bottom margin of a TX Text Control document or document section.
LeftSpecifies the left margin of a TX Text Control document or document section.
RightSpecifies the right margin of a TX Text Control document or document section.
TopSpecifies the top margin of a TX Text Control document or document section.

Enumerations

EnumerationDescription
AttributeDetermines 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

 
 
 

Products

Support

Downloads

Corporate

Buy Now