TX Text Control .NET Server

PageMargins Constructor

Constructor
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Creates a new instance of the PageMargins class.

Syntax

PageMargins()

Creates a new instance of the PageMargins class with a left, top, right and bottom margin of 1 inch.

public PageMargins();

PageMargins(double, double, double, double)

Creates a new instance of the PageMargins class with the specified margins.

public PageMargins(double left, double top, double right, double bottom);
ParameterDescription
left

Specifies the left page margin.

top

Specifies the top page margin.

right

Specifies the right page margin.

bottom

Specifies the bottom page margin.

PageMargins(SerializationInfo, StreamingContext)

protected PageMargins(SerializationInfo info, StreamingContext context);

Examples

The following example creates a Page Margins instance and configures its left setting for a document workflow.

PageMargins pageMargins = new();
pageMargins.Left = 1.0;