MarginInfo
Inheritance: java.lang.Object, com.aspose.pdf.MarginInfo
All Implemented Interfaces: com.aspose.ms.System.ICloneable
public final class MarginInfo extends Object implements com.aspose.ms.System.ICloneable
This class represents a margin for different objects.
Constructors
| Constructor | Description |
|---|---|
| MarginInfo | Initializes a new instance of the {@code MarginInfo} class. |
| MarginInfo | Constructor of Rectangle. |
Methods
| Method | Description |
|---|---|
| deepClone | Clones a new {@code MarginInfo} object. |
| getBottom | Gets a float value that indicates the bottom margin. |
| getLeft | Gets a float value that indicates the left margin. |
| getRight | Gets a float value that indicates the right margin. |
| getTop | Gets a float value that indicates the top margin. |
| setBottom | Sets a float value that indicates the bottom margin. |
| setLeft | Sets a float value that indicates the left margin. |
| setRight | Sets a float value that indicates the right margin. |
| setTop | Sets a float value that indicates the top margin. |
MarginInfo
public MarginInfo()
Initializes a new instance of the {@code MarginInfo} class.
MarginInfo
public MarginInfo(double left, double bottom, double right, double top)
Constructor of Rectangle.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| left | Left margin. | |
| bottom | Bottom margin | |
| right | Right margin. | |
| top | Top margin. |
deepClone
public Object deepClone()
Clones a new {@code MarginInfo} object.
Returns: The new object.
getBottom
public double getBottom()
Gets a float value that indicates the bottom margin.
Returns: double value
getLeft
public double getLeft()
Gets a float value that indicates the left margin.
Returns: double value
getRight
public double getRight()
Gets a float value that indicates the right margin.
Returns: double value
getTop
public double getTop()
Gets a float value that indicates the top margin.
Returns: double value
setBottom
public void setBottom(double value)
Sets a float value that indicates the bottom margin.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double value |
setLeft
public void setLeft(double value)
Sets a float value that indicates the left margin.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double value |
setRight
public void setRight(double value)
Sets a float value that indicates the right margin.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double value |
setTop
public void setTop(double value)
Sets a float value that indicates the top margin.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double value |