SaveOptions.MarginPartStyle
Inheritance: java.lang.Object, com.aspose.pdf.SaveOptions.MarginPartStyle
public static class SaveOptions.MarginPartStyle extends Object
Represents information of one part of margin(top, botom, left side or right side)
Constructors
| Constructor | Description |
|---|---|
| MarginPartStyle | Creates instance of MarginPartStyle class and initializes its value in points |
| MarginPartStyle | Creates instance of MarginPartStyle class and set its value in points |
Methods
| Method | Description |
|---|---|
| getValueInPoints | Represents margin in points. Must be number greater then zero. |
| isAuto | Gets or sets a value indicating whether this instance is auto. Value: {@code true} if this instance is auto; otherwise, {@code false}. |
| setAuto | Gets or sets a value indicating whether this instance is auto. Value: {@code true} if this instance is auto; otherwise, {@code false}. |
| setValueInPoints | Represents margin in points. Must be number greater then zero. |
MarginPartStyle
public MarginPartStyle(boolean isAuto)
Creates instance of MarginPartStyle class and initializes its value in points
Parameters:
| Parameter | Type | Description |
|---|---|---|
| isAuto | Mark margin auto |
MarginPartStyle
public MarginPartStyle(int valueInPoints)
Creates instance of MarginPartStyle class and set its value in points
Parameters:
| Parameter | Type | Description |
|---|---|---|
| valueInPoints | Integer value in points |
getValueInPoints
public final int getValueInPoints()
Represents margin in points. Must be number greater then zero.
Returns: int value
isAuto
public final boolean isAuto()
Gets or sets a value indicating whether this instance is auto. Value: {@code true} if this instance is auto; otherwise, {@code false}.
Returns: boolean value
setAuto
public final void setAuto(boolean value)
Gets or sets a value indicating whether this instance is auto. Value: {@code true} if this instance is auto; otherwise, {@code false}.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean value |
setValueInPoints
public final void setValueInPoints(int value)
Represents margin in points. Must be number greater then zero.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int value |