MarginInfo
Overview
MarginInfo is a class in Aspose.Pdf FOSS for Java.
Represents margin information (top, bottom, left, right) for a content element.
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 |