Class UseMargins
Margin values which can be copied from the main document to headers and footers applied to the document
Inheritance
Namespace: IronPdf
Assembly: IronPdf.dll
Syntax
public sealed class UseMargins : Enum
The UseMargins enumeration in IronPDF declares which margin values are copied from the main document onto headers and footers, used by header/footer types that implement IMargins.
It belongs to the IronPdf namespace and exposes 8 values: None, All, TopAndBottom, LeftAndRight, Top, Bottom, Left, and Right. Pair the value with the document's own margin settings so chrome aligns with the body grid.
See Add Headers & Footers for typical setups.
Fields
All
All margin values will be used
Declaration
public const UseMargins All
Field Value
| Type | Description |
|---|---|
| UseMargins |
Bottom
Bottom margin value will be used
Declaration
public const UseMargins Bottom
Field Value
| Type | Description |
|---|---|
| UseMargins |
Left
Left margin value will be used
Declaration
public const UseMargins Left
Field Value
| Type | Description |
|---|---|
| UseMargins |
LeftAndRight
Left and right margin values will be used
Declaration
public const UseMargins LeftAndRight
Field Value
| Type | Description |
|---|---|
| UseMargins |
None
No margins values will be used
Declaration
public const UseMargins None
Field Value
| Type | Description |
|---|---|
| UseMargins |
Right
Right margin value will be used
Declaration
public const UseMargins Right
Field Value
| Type | Description |
|---|---|
| UseMargins |
Top
Top margin value will be used
Declaration
public const UseMargins Top
Field Value
| Type | Description |
|---|---|
| UseMargins |
TopAndBottom
Top and bottom margin values will be used
Declaration
public const UseMargins TopAndBottom
Field Value
| Type | Description |
|---|---|
| UseMargins |
value__
Declaration
public int value__
Field Value
| Type | Description |
|---|---|
| System.Int32 |