Class Margins
Margins to use for printing (in millimeters).
Inheritance
System.Object
Margins
Namespace: IronPrint
Assembly: IronPrint.dll
Syntax
public sealed class Margins : ValueType
Constructors
Margins(Int32)
Margins to use for printing with the same value for all sides (in millimeters).
Declaration
public Margins(int uniformMargin)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | uniformMargin | The margin value to apply to all sides (left, top, right, and bottom). |
Margins(Int32, Int32)
Margins for printing.
Declaration
public Margins(int horizontal, int vertical)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | horizontal | Margins for left and right side of page. |
System.Int32 | vertical | Margins for top and bottom of page. |
Margins(Int32, Int32, Int32, Int32)
Margins for printing.
Declaration
public Margins(int left, int top, int right, int bottom)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | left | The left margin (in millimeters). |
System.Int32 | top | The top margin (in millimeters). |
System.Int32 | right | The right margin (in millimeters). |
System.Int32 | bottom | The bottom margin (in millimeters). |
Fields
Bottom
Bottom margin.
Declaration
public int Bottom
Field Value
Type | Description |
---|---|
System.Int32 |
Left
Left margin.
Declaration
public int Left
Field Value
Type | Description |
---|---|
System.Int32 |
Right
Right margin.
Declaration
public int Right
Field Value
Type | Description |
---|---|
System.Int32 |
Top
Top margin.
Declaration
public int Top
Field Value
Type | Description |
---|---|
System.Int32 |
Zero
No margins.
Declaration
public static Margins Zero
Field Value
Type | Description |
---|---|
Margins |