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 inches or centimeters.doublegetLeft()Gets the size of the left margin in inches or centimeters.doublegetRight()Gets the size of the right margin in inches or centimeters.doublegetTop()Gets the size of the top margin in inches or centimeters.voidsetBorders(int value)Sets a position where to print borders.voidsetBottom(double value)Sets the size of the bottom margin in inches or centimeters.voidsetLeft(double value)Sets the size of the left margin in inches or centimeters.voidsetRight(double value)Sets the size of the right margin in inches or centimeters.voidsetTop(double value)Sets the size of the top margin in inches or 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 inches or centimeters.
- Returns:
- the size of the bottom margin in inches or centimeters.
-
setBottom
public final void setBottom(double value)
Sets the size of the bottom margin in inches or centimeters.
- Parameters:
value- the size of the bottom margin in inches or centimeters.
-
getLeft
public final double getLeft()
Gets the size of the left margin in inches or centimeters.
- Returns:
- the size of the left margin in inches or centimeters.
-
setLeft
public final void setLeft(double value)
Sets the size of the left margin in inches or centimeters.
- Parameters:
value- the size of the left margin in inches or centimeters.
-
getRight
public final double getRight()
Gets the size of the right margin in inches or centimeters.
- Returns:
- the size of the right margin in inches or centimeters.
-
setRight
public final void setRight(double value)
Sets the size of the right margin in inches or centimeters.
- Parameters:
value- the size of the right margin in inches or centimeters.
-
getTop
public final double getTop()
Gets the size of the top margin in inches or centimeters.
- Returns:
- the size of the top margin in inches or centimeters.
-
setTop
public final void setTop(double value)
Sets the size of the top margin in inches or centimeters.
- Parameters:
value- the size of the top margin in inches or centimeters.
-
-