Creates custom margins for the web page in points. One point equals 1/72 of an inch.
Namespace:
DotNetBrowser.Print
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.26.2
Syntax public PageMargins(
int left,
int right,
int top,
int bottom
)
Parameters
- left
- Type: SystemInt32
The margin on the left side of the sheet. Cannot be negative. - right
- Type: SystemInt32
The margin on the right side of the sheet. Cannot be negative. - top
- Type: SystemInt32
The margin on the top side of the sheet. Cannot be negative. - bottom
- Type: SystemInt32
The margin on the bottom side of the sheet. Cannot be negative.
Exceptions Exception | Condition |
---|
ArgumentException | Any of the parameters is negative. |
See Also