TX Text Control .NET Server

PageMargins Class

Class
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Core.dll
Install
dotnet add package TXTextControl.TextControl.Core.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

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

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;

The following example configures page margins for the current document.

PageMargins pageMargins = textControl.PageMargins;
pageMargins.Left = 1440;
pageMargins.Right = 1440;

Members

Constructors

ConstructorDescription
PageMarginsCreates a new instance of the PageMargins class.

Properties

PropertyDescription
BottomSpecifies the bottom margin of a TX Text Control document or document section. The measure depends on the TextControl.PageUnit, WPF.TextControl.PageUnit or ServerTextControl.PageUnit property.
LeftSpecifies the left margin of a TX Text Control document or document section. The measure depends on the TextControl.PageUnit, WPF.TextControl.PageUnit or ServerTextControl.PageUnit property.
RightSpecifies the right margin of a TX Text Control document or document section. The measure depends on the TextControl.PageUnit, WPF.TextControl.PageUnit or ServerTextControl.PageUnit property.
TopSpecifies the top margin of a TX Text Control document or document section. The measure depends on the TextControl.PageUnit, WPF.TextControl.PageUnit or ServerTextControl.PageUnit property.

Enumerations

EnumerationDescription
AttributeDetermines a certain attribute. This enumeration is used with the Selection.IsCommonValueSelected method.