Table of Contents

Constructor PageMargins

Namespace
DotNetBrowser.Print
Assembly
DotNetBrowser.dll

PageMargins(int, int, int, int)

Creates custom margins for the web page in points. One point equals 1/72 of an inch.

public PageMargins(int left, int right, int top, int bottom)

Parameters

left int

The margin on the left side of the sheet. Cannot be negative.

right int

The margin on the right side of the sheet. Cannot be negative.

top int

The margin on the top side of the sheet. Cannot be negative.

bottom int

The margin on the bottom side of the sheet. Cannot be negative.

Exceptions

ArgumentException

Any of the parameters is negative.