Package com.aspose.tasks
Class PageMargins
- java.lang.Object
-
- com.aspose.tasks.PageMargins
-
public class PageMargins extends Object
Represents page margins for printing.
-
-
Constructor Summary
Constructors Constructor Description PageMargins()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBorders()Gets a position where to print borders.doublegetBottom()Gets the size of the bottom margin in centimeters.doublegetLeft()Gets the size of the left margin in centimeters.doublegetRight()Gets the size of the right margin in centimeters.doublegetTop()Gets the size of the top margin in centimeters.voidsetBorders(int value)Sets a position where to print borders.voidsetBottom(double value)Sets the size of the bottom margin in centimeters.voidsetLeft(double value)Sets the size of the left margin in centimeters.voidsetRight(double value)Sets the size of the right margin in centimeters.voidsetTop(double value)Sets the size of the top margin in centimeters.
-
-
-
Method Detail
-
getBorders
public final int getBorders()
Gets a position where to print borders. Can be one of the values of the
Borderenumeration.- Returns:
- a position where to print borders.
-
setBorders
public final void setBorders(int value)
Sets a position where to print borders. Can be one of the values of the
Borderenumeration.- Parameters:
value- a position where to print borders.
-
getBottom
public final double getBottom()
Gets the size of the bottom margin in centimeters.
- Returns:
- the size of the bottom margin in centimeters.
-
setBottom
public final void setBottom(double value)
Sets the size of the bottom margin in centimeters.
- Parameters:
value- the size of the bottom margin in centimeters.
-
getLeft
public final double getLeft()
Gets the size of the left margin in centimeters.
- Returns:
- the size of the left margin in centimeters.
-
setLeft
public final void setLeft(double value)
Sets the size of the left margin in centimeters.
- Parameters:
value- the size of the left margin in centimeters.
-
getRight
public final double getRight()
Gets the size of the right margin in centimeters.
- Returns:
- the size of the right margin in centimeters.
-
setRight
public final void setRight(double value)
Sets the size of the right margin in centimeters.
- Parameters:
value- the size of the right margin in centimeters.
-
getTop
public final double getTop()
Gets the size of the top margin in centimeters.
- Returns:
- the size of the top margin in centimeters.
-
setTop
public final void setTop(double value)
Sets the size of the top margin in centimeters.
- Parameters:
value- the size of the top margin in centimeters.
-
-