MarginInfo
Overview
MarginInfo is a class in Aspose.PDF FOSS for .NET.
Represents margin information for page elements.
This class declares 4 methods for MarginInfo objects in .NET programs.
Available methods include: Clone, MarginInfo.
Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: Bottom, Left, Right, Top.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Top | double | Read/Write | Top margin in PDF points. |
Bottom | double | Read/Write | Bottom margin in PDF points. |
Left | double | Read/Write | Left margin in PDF points. |
Right | double | Read/Write | Right margin in PDF points. |
Methods
| Signature | Description |
|---|---|
MarginInfo() | Creates margins of 0 on every side. |
MarginInfo(left: double, bottom: double, right: double, top: double) | Creates margins with the given left, bottom, right and top values in points (1/72 inch); all four sides count as explicitly set. |
Clone() | Shallow clone. |
MarginInfo(commonMargin: MarginPartStyle) | A copy that keeps each side’s user-set flag as it is (a generated page inherits its source page’s margins exactly as authored). |