MarginInfo
Overview
MarginInfo is a class in Aspose.PDF FOSS for Java.
Represents margin information for a content element.
This class provides 13 methods for working with MarginInfo objects in Java programs.
Available methods include: MarginInfo, getBottom, getLeft, getRight, getTop, setBottom, setLeft, setRight, setTop, toString.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: bottom, left, right, top.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
top | double | Read | Gets the top margin value. |
bottom | double | Read | Gets the bottom margin value. |
left | double | Read | Gets the left margin value. |
right | double | Read | Gets the right margin value. |
Methods
| Signature | Description |
|---|---|
MarginInfo() | Creates a MarginInfo with all margins set to 0. |
MarginInfo(left: double, bottom: double, right: double, top: double) | Creates a MarginInfo with the specified margin values for each side. |
MarginInfo(all: double) | Creates a MarginInfo with all four margins set to the same value. |
getTop() → double | Gets the top margin value. |
setTop(top: double) | Sets the top margin value. |
getBottom() → double | Gets the bottom margin value. |
setBottom(bottom: double) | Sets the bottom margin value. |
getLeft() → double | Gets the left margin value. |
setLeft(left: double) | Sets the left margin value. |
getRight() → double | Gets the right margin value. |
setRight(right: double) | Sets the right margin value. |
toString() → String | |
MarginInfo(top: double, bottom: double, left: double, right: double) | Creates a MarginInfo with the specified values. |