
**Inheritance:**
java.lang.Object
```
public class PageMargins
```

Represents page margins for printing.
## Constructors

| Constructor | Description |
| --- | --- |
| [PageMargins()](#PageMargins--) |  |
## Methods

| Method | Description |
| --- | --- |
| [getBorders()](#getBorders--) | Gets a position where to print borders. |
| [getBottom()](#getBottom--) | Gets the size of the bottom margin in centimeters. |
| [getLeft()](#getLeft--) | Gets the size of the left margin in centimeters. |
| [getRight()](#getRight--) | Gets the size of the right margin in centimeters. |
| [getTop()](#getTop--) | Gets the size of the top margin in centimeters. |
| [setBorders(int value)](#setBorders-int-) | Sets a position where to print borders. |
| [setBottom(double value)](#setBottom-double-) | Sets the size of the bottom margin in centimeters. |
| [setLeft(double value)](#setLeft-double-) | Sets the size of the left margin in centimeters. |
| [setRight(double value)](#setRight-double-) | Sets the size of the right margin in centimeters. |
| [setTop(double value)](#setTop-double-) | Sets the size of the top margin in centimeters. |
### PageMargins() {#PageMargins--}
```
public PageMargins()
```


### getBorders() {#getBorders--}
```
public final int getBorders()
```


Gets a position where to print borders. Can be one of the values of the [Border](../../com.aspose.tasks/border) enumeration.

**Returns:**
int - a position where to print borders.
### getBottom() {#getBottom--}
```
public final double getBottom()
```


Gets the size of the bottom margin in centimeters.

**Returns:**
double - the size of the bottom margin in centimeters.
### getLeft() {#getLeft--}
```
public final double getLeft()
```


Gets the size of the left margin in centimeters.

**Returns:**
double - the size of the left margin in centimeters.
### getRight() {#getRight--}
```
public final double getRight()
```


Gets the size of the right margin in centimeters.

**Returns:**
double - the size of the right margin in centimeters.
### getTop() {#getTop--}
```
public final double getTop()
```


Gets the size of the top margin in centimeters.

**Returns:**
double - the size of the top margin in centimeters.
### setBorders(int value) {#setBorders-int-}
```
public final void setBorders(int value)
```


Sets a position where to print borders. Can be one of the values of the [Border](../../com.aspose.tasks/border) enumeration.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | a position where to print borders. |

### setBottom(double value) {#setBottom-double-}
```
public final void setBottom(double value)
```


Sets the size of the bottom margin in centimeters.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | double | the size of the bottom margin in centimeters. |

### setLeft(double value) {#setLeft-double-}
```
public final void setLeft(double value)
```


Sets the size of the left margin in centimeters.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | double | the size of the left margin in centimeters. |

### setRight(double value) {#setRight-double-}
```
public final void setRight(double value)
```


Sets the size of the right margin in centimeters.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | double | the size of the right margin in centimeters. |

### setTop(double value) {#setTop-double-}
```
public final void setTop(double value)
```


Sets the size of the top margin in centimeters.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | double | the size of the top margin in centimeters. |

